Lines Matching refs:ptr

25 inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr,  in NoBarrier_CompareAndSwap()  argument
29 reinterpret_cast<volatile LONG*>(ptr), in NoBarrier_CompareAndSwap()
35 inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, in NoBarrier_AtomicExchange() argument
38 reinterpret_cast<volatile LONG*>(ptr), in NoBarrier_AtomicExchange()
43 inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr, in Barrier_AtomicIncrement() argument
46 reinterpret_cast<volatile LONG*>(ptr), in Barrier_AtomicIncrement()
50 inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr, in NoBarrier_AtomicIncrement() argument
52 return Barrier_AtomicIncrement(ptr, increment); in NoBarrier_AtomicIncrement()
68 inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, in Acquire_CompareAndSwap() argument
71 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
74 inline Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr, in Release_CompareAndSwap() argument
77 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
80 inline void NoBarrier_Store(volatile Atomic8* ptr, Atomic8 value) { in NoBarrier_Store() argument
81 *ptr = value; in NoBarrier_Store()
84 inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) { in NoBarrier_Store() argument
85 *ptr = value; in NoBarrier_Store()
88 inline void Acquire_Store(volatile Atomic32* ptr, Atomic32 value) { in Acquire_Store() argument
89 NoBarrier_AtomicExchange(ptr, value); in Acquire_Store()
93 inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) { in Release_Store() argument
94 *ptr = value; // works w/o barrier for current Intel chips as of June 2005 in Release_Store()
98 inline Atomic8 NoBarrier_Load(volatile const Atomic8* ptr) { in NoBarrier_Load() argument
99 return *ptr; in NoBarrier_Load()
102 inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) { in NoBarrier_Load() argument
103 return *ptr; in NoBarrier_Load()
106 inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) { in Acquire_Load() argument
107 Atomic32 value = *ptr; in Acquire_Load()
111 inline Atomic32 Release_Load(volatile const Atomic32* ptr) { in Release_Load() argument
113 return *ptr; in Release_Load()
122 inline Atomic64 NoBarrier_CompareAndSwap(volatile Atomic64* ptr, in NoBarrier_CompareAndSwap() argument
126 reinterpret_cast<volatile PVOID*>(ptr), in NoBarrier_CompareAndSwap()
131 inline Atomic64 NoBarrier_AtomicExchange(volatile Atomic64* ptr, in NoBarrier_AtomicExchange() argument
134 reinterpret_cast<volatile PVOID*>(ptr), in NoBarrier_AtomicExchange()
139 inline Atomic64 Barrier_AtomicIncrement(volatile Atomic64* ptr, in Barrier_AtomicIncrement() argument
142 reinterpret_cast<volatile LONGLONG*>(ptr), in Barrier_AtomicIncrement()
146 inline Atomic64 NoBarrier_AtomicIncrement(volatile Atomic64* ptr, in NoBarrier_AtomicIncrement() argument
148 return Barrier_AtomicIncrement(ptr, increment); in NoBarrier_AtomicIncrement()
151 inline void NoBarrier_Store(volatile Atomic64* ptr, Atomic64 value) { in NoBarrier_Store() argument
152 *ptr = value; in NoBarrier_Store()
155 inline void Acquire_Store(volatile Atomic64* ptr, Atomic64 value) { in Acquire_Store() argument
156 NoBarrier_AtomicExchange(ptr, value); in Acquire_Store()
160 inline void Release_Store(volatile Atomic64* ptr, Atomic64 value) { in Release_Store() argument
161 *ptr = value; // works w/o barrier for current Intel chips as of June 2005 in Release_Store()
171 inline Atomic64 NoBarrier_Load(volatile const Atomic64* ptr) { in NoBarrier_Load() argument
172 return *ptr; in NoBarrier_Load()
175 inline Atomic64 Acquire_Load(volatile const Atomic64* ptr) { in Acquire_Load() argument
176 Atomic64 value = *ptr; in Acquire_Load()
180 inline Atomic64 Release_Load(volatile const Atomic64* ptr) { in Release_Load() argument
182 return *ptr; in Release_Load()
185 inline Atomic64 Acquire_CompareAndSwap(volatile Atomic64* ptr, in Acquire_CompareAndSwap() argument
188 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
191 inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr, in Release_CompareAndSwap() argument
194 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()