VirtualBox

Changeset 7638 in vbox


Ignore:
Timestamp:
Mar 28, 2008 6:52:25 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29144
Message:

Another one.

File:
1 edited

Legend:

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

    r7637 r7638  
    22682268DECLASM(bool) ASMAtomicCmpXchgU64(volatile uint64_t *pu64, const uint64_t u64New, const uint64_t u64Old);
    22692269#else
    2270 DECLINLINE(bool) ASMAtomicCmpXchgU64(volatile uint64_t *pu64, const uint64_t u64New, const uint64_t u64Old)
     2270DECLINLINE(bool) ASMAtomicCmpXchgU64(volatile uint64_t *pu64, const uint64_t u64New, uint64_t u64Old)
    22712271{
    22722272# if RT_INLINE_ASM_USES_INTRIN
     
    22762276#  if RT_INLINE_ASM_GNU_STYLE
    22772277    uint8_t u8Ret;
    2278     __asm__ __volatile__("lock; cmpxchgq %2, %0\n\t"
     2278    __asm__ __volatile__("lock; cmpxchgq %3, %0\n\t"
    22792279                         "setz  %1\n\t"
    22802280                         : "=m" (*pu64),
    2281                            "=qm" (u8Ret)
     2281                           "=qm" (u8Ret),
     2282                           "=a" (u64Old)
    22822283                         : "r" (u64New),
    2283                            "a" (u64Old));
     2284                           "2" (u64Old));
    22842285    return (bool)u8Ret;
    22852286#  else
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