Searched refs:CompareAndSwap (Results 1 – 4 of 4) sorted by relevance
41 sys::cas_flag sys::CompareAndSwap(volatile sys::cas_flag* ptr, in CompareAndSwap() function in sys115 } while (sys::CompareAndSwap(ptr, result, original) != original); in AtomicMul()125 } while (sys::CompareAndSwap(ptr, result, original) != original); in AtomicDiv()
28 cas_flag CompareAndSwap(volatile cas_flag* ptr,
134 sys::cas_flag old_val = sys::CompareAndSwap(&initialized, 1, 0); \
218 TEST(AtomicOpsTest, CompareAndSwap) { in TEST() argument