Lines Matching refs:sys
29 void sys::MemoryFence() { in MemoryFence()
43 sys::cas_flag sys::CompareAndSwap(volatile sys::cas_flag* ptr, in CompareAndSwap()
44 sys::cas_flag new_value, in CompareAndSwap()
45 sys::cas_flag old_value) { in CompareAndSwap()
47 sys::cas_flag result = *ptr; in CompareAndSwap()
60 sys::cas_flag sys::AtomicIncrement(volatile sys::cas_flag* ptr) { in AtomicIncrement()
73 sys::cas_flag sys::AtomicDecrement(volatile sys::cas_flag* ptr) { in AtomicDecrement()
86 sys::cas_flag sys::AtomicAdd(volatile sys::cas_flag* ptr, sys::cas_flag val) { in AtomicAdd()
99 sys::cas_flag sys::AtomicMul(volatile sys::cas_flag* ptr, sys::cas_flag val) { in AtomicMul()
100 sys::cas_flag original, result; in AtomicMul()
104 } while (sys::CompareAndSwap(ptr, result, original) != original); in AtomicMul()
109 sys::cas_flag sys::AtomicDiv(volatile sys::cas_flag* ptr, sys::cas_flag val) { in AtomicDiv()
110 sys::cas_flag original, result; in AtomicDiv()
114 } while (sys::CompareAndSwap(ptr, result, original) != original); in AtomicDiv()