Changeset 7638 in vbox
- Timestamp:
- Mar 28, 2008 6:52:25 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29144
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r7637 r7638 2268 2268 DECLASM(bool) ASMAtomicCmpXchgU64(volatile uint64_t *pu64, const uint64_t u64New, const uint64_t u64Old); 2269 2269 #else 2270 DECLINLINE(bool) ASMAtomicCmpXchgU64(volatile uint64_t *pu64, const uint64_t u64New, constuint64_t u64Old)2270 DECLINLINE(bool) ASMAtomicCmpXchgU64(volatile uint64_t *pu64, const uint64_t u64New, uint64_t u64Old) 2271 2271 { 2272 2272 # if RT_INLINE_ASM_USES_INTRIN … … 2276 2276 # if RT_INLINE_ASM_GNU_STYLE 2277 2277 uint8_t u8Ret; 2278 __asm__ __volatile__("lock; cmpxchgq % 2, %0\n\t"2278 __asm__ __volatile__("lock; cmpxchgq %3, %0\n\t" 2279 2279 "setz %1\n\t" 2280 2280 : "=m" (*pu64), 2281 "=qm" (u8Ret) 2281 "=qm" (u8Ret), 2282 "=a" (u64Old) 2282 2283 : "r" (u64New), 2283 " a" (u64Old));2284 "2" (u64Old)); 2284 2285 return (bool)u8Ret; 2285 2286 # else
Note:
See TracChangeset
for help on using the changeset viewer.