VirtualBox

Changeset 74456 in vbox for trunk/include


Ignore:
Timestamp:
Sep 25, 2018 11:37:53 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125307
Message:

iprt/asm.h: doxygen fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/include/iprt/asm.h

    r74453 r74456  
    530530 *
    531531 * @returns Current *ppv value
    532  * @param   ppv    Pointer to the pointer variable to update.
    533  * @param   pv     The pointer value to assign to *ppv.
    534  */
    535 DECLINLINE(size_t) ASMAtomicXchgZ(size_t volatile RT_FAR *puValue, const size_t uValue)
     532 * @param   puDst   Pointer to the size_t variable to update.
     533 * @param   uNew    The new value to assign to *puDst.
     534 */
     535DECLINLINE(size_t) ASMAtomicXchgZ(size_t volatile RT_FAR *puDst, const size_t uNew)
    536536{
    537537#if ARCH_BITS == 16
    538538    AssertCompile(sizeof(size_t) == 2);
    539     return ASMAtomicXchgU16((volatile uint16_t RT_FAR *)puValue, uValue);
     539    return ASMAtomicXchgU16((volatile uint16_t RT_FAR *)puDst, uNew);
    540540#elif ARCH_BITS == 32
    541     return ASMAtomicXchgU32((volatile uint32_t RT_FAR *)puValue, uValue);
     541    return ASMAtomicXchgU32((volatile uint32_t RT_FAR *)puDst, uNew);
    542542#elif ARCH_BITS == 64
    543     return ASMAtomicXchgU64((volatile uint64_t RT_FAR *)puValue, uValue);
     543    return ASMAtomicXchgU64((volatile uint64_t RT_FAR *)puDst, uNew);
    544544#else
    545545# error "ARCH_BITS is bogus"
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette