Changeset 33196 in vbox for trunk/include
- Timestamp:
- Oct 18, 2010 2:03:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r33138 r33196 2496 2496 return u64; 2497 2497 # else 2498 uint64_t u64 New;2498 uint64_t u64Old; 2499 2499 for (;;) 2500 2500 { 2501 u int64_t u64Old = ASMAtomicUoReadU64(pu64);2502 u 64New = u64Old + u64;2501 u64Old = ASMAtomicUoReadU64(pu64); 2502 uint64_t u64New = u64Old + u64; 2503 2503 if (ASMAtomicCmpXchgU64(pu64, u64New, u64Old)) 2504 2504 break; 2505 2505 ASMNopPause(); 2506 2506 } 2507 return u64 New;2507 return u64Old; 2508 2508 # endif 2509 2509 }
Note:
See TracChangeset
for help on using the changeset viewer.