Lines Matching refs:Atomic32
69 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap()
70 Atomic32 old_value, in NoBarrier_CompareAndSwap()
71 Atomic32 new_value) { in NoBarrier_CompareAndSwap()
72 Atomic32 prev_value; in NoBarrier_CompareAndSwap()
95 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap()
96 Atomic32 old_value, in Acquire_CompareAndSwap()
97 Atomic32 new_value) { in Acquire_CompareAndSwap()
98 Atomic32 result = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
103 inline Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr, in Release_CompareAndSwap()
104 Atomic32 old_value, in Release_CompareAndSwap()
105 Atomic32 new_value) { in Release_CompareAndSwap()
110 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement()
111 Atomic32 increment) { in NoBarrier_AtomicIncrement()
112 Atomic32 value; in NoBarrier_AtomicIncrement()
131 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement()
132 Atomic32 increment) { in Barrier_AtomicIncrement()
137 Atomic32 result = NoBarrier_AtomicIncrement(ptr, increment); in Barrier_AtomicIncrement()
142 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange()
143 Atomic32 new_value) { in NoBarrier_AtomicExchange()
144 Atomic32 old_value; in NoBarrier_AtomicExchange()
176 inline int LinuxKernelCmpxchg(Atomic32 old_value, in LinuxKernelCmpxchg()
177 Atomic32 new_value, in LinuxKernelCmpxchg()
178 volatile Atomic32* ptr) { in LinuxKernelCmpxchg()
179 typedef int (*KernelCmpxchgFunc)(Atomic32, Atomic32, volatile Atomic32*); in LinuxKernelCmpxchg()
185 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap()
186 Atomic32 old_value, in NoBarrier_CompareAndSwap()
187 Atomic32 new_value) { in NoBarrier_CompareAndSwap()
188 Atomic32 prev_value; in NoBarrier_CompareAndSwap()
198 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange()
199 Atomic32 new_value) { in NoBarrier_AtomicExchange()
200 Atomic32 old_value; in NoBarrier_AtomicExchange()
207 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement()
208 Atomic32 increment) { in NoBarrier_AtomicIncrement()
212 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement()
213 Atomic32 increment) { in Barrier_AtomicIncrement()
216 Atomic32 old_value = *ptr; in Barrier_AtomicIncrement()
217 Atomic32 new_value = old_value + increment; in Barrier_AtomicIncrement()
226 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap()
227 Atomic32 old_value, in Acquire_CompareAndSwap()
228 Atomic32 new_value) { in Acquire_CompareAndSwap()
229 Atomic32 prev_value; in Acquire_CompareAndSwap()
242 inline Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr, in Release_CompareAndSwap()
243 Atomic32 old_value, in Release_CompareAndSwap()
244 Atomic32 new_value) { in Release_CompareAndSwap()
265 inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) { in NoBarrier_Store()
269 inline void Acquire_Store(volatile Atomic32* ptr, Atomic32 value) { in Acquire_Store()
274 inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) { in Release_Store()
279 inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) { return *ptr; } in NoBarrier_Load()
281 inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) { in Acquire_Load()
282 Atomic32 value = *ptr; in Acquire_Load()
287 inline Atomic32 Release_Load(volatile const Atomic32* ptr) { in Release_Load()