Lines Matching refs:ptr
46 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr, in NoBarrier_CompareAndSwap() argument
61 : "=&r" (prev), "=m" (*ptr), "=&r" (tmp) in NoBarrier_CompareAndSwap()
62 : "r" (old_value), "r" (new_value), "m" (*ptr) in NoBarrier_CompareAndSwap()
69 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
81 : "=&r" (temp), "=&r" (old), "=m" (*ptr) in NoBarrier_AtomicExchange()
82 : "r" (new_value), "m" (*ptr) in NoBarrier_AtomicExchange()
90 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
103 : "=&r" (temp), "=&r" (temp2), "=m" (*ptr) in NoBarrier_AtomicIncrement()
104 : "Ir" (increment), "m" (*ptr) in NoBarrier_AtomicIncrement()
110 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
113 Atomic32 res = NoBarrier_AtomicIncrement(ptr, increment); in Barrier_AtomicIncrement()
124 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
127 Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
132 inline Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr, in Release_CompareAndSwap() argument
136 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
139 inline void NoBarrier_Store(volatile Atomic8* ptr, Atomic8 value) { in NoBarrier_Store() argument
140 *ptr = value; in NoBarrier_Store()
143 inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) { in NoBarrier_Store() argument
144 *ptr = value; in NoBarrier_Store()
151 inline void Acquire_Store(volatile Atomic32* ptr, Atomic32 value) { in Acquire_Store() argument
152 *ptr = value; in Acquire_Store()
156 inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) { in Release_Store() argument
158 *ptr = value; in Release_Store()
161 inline Atomic8 NoBarrier_Load(volatile const Atomic8* ptr) { in NoBarrier_Load() argument
162 return *ptr; in NoBarrier_Load()
165 inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) { in NoBarrier_Load() argument
166 return *ptr; in NoBarrier_Load()
169 inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) { in Acquire_Load() argument
170 Atomic32 value = *ptr; in Acquire_Load()
175 inline Atomic32 Release_Load(volatile const Atomic32* ptr) { in Release_Load() argument
177 return *ptr; in Release_Load()
183 inline Atomic64 NoBarrier_CompareAndSwap(volatile Atomic64* ptr, in NoBarrier_CompareAndSwap() argument
198 : "=&r" (prev), "=m" (*ptr), "=&r" (tmp) in NoBarrier_CompareAndSwap()
199 : "r" (old_value), "r" (new_value), "m" (*ptr) in NoBarrier_CompareAndSwap()
206 inline Atomic64 NoBarrier_AtomicExchange(volatile Atomic64* ptr, in NoBarrier_AtomicExchange() argument
218 : "=&r" (temp), "=&r" (old), "=m" (*ptr) in NoBarrier_AtomicExchange()
219 : "r" (new_value), "m" (*ptr) in NoBarrier_AtomicExchange()
227 inline Atomic64 NoBarrier_AtomicIncrement(volatile Atomic64* ptr, in NoBarrier_AtomicIncrement() argument
240 : "=&r" (temp), "=&r" (temp2), "=m" (*ptr) in NoBarrier_AtomicIncrement()
241 : "Ir" (increment), "m" (*ptr) in NoBarrier_AtomicIncrement()
247 inline Atomic64 Barrier_AtomicIncrement(volatile Atomic64* ptr, in Barrier_AtomicIncrement() argument
250 Atomic64 res = NoBarrier_AtomicIncrement(ptr, increment); in Barrier_AtomicIncrement()
261 inline Atomic64 Acquire_CompareAndSwap(volatile Atomic64* ptr, in Acquire_CompareAndSwap() argument
264 Atomic64 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
269 inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr, in Release_CompareAndSwap() argument
273 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
276 inline void NoBarrier_Store(volatile Atomic64* ptr, Atomic64 value) { in NoBarrier_Store() argument
277 *ptr = value; in NoBarrier_Store()
280 inline void Acquire_Store(volatile Atomic64* ptr, Atomic64 value) { in Acquire_Store() argument
281 *ptr = value; in Acquire_Store()
285 inline void Release_Store(volatile Atomic64* ptr, Atomic64 value) { in Release_Store() argument
287 *ptr = value; in Release_Store()
290 inline Atomic64 NoBarrier_Load(volatile const Atomic64* ptr) { in NoBarrier_Load() argument
291 return *ptr; in NoBarrier_Load()
294 inline Atomic64 Acquire_Load(volatile const Atomic64* ptr) { in Acquire_Load() argument
295 Atomic64 value = *ptr; in Acquire_Load()
300 inline Atomic64 Release_Load(volatile const Atomic64* ptr) { in Release_Load() argument
302 return *ptr; in Release_Load()