Lines Matching refs:old_value

16                                          Atomic32 old_value,  in NoBarrier_CompareAndSwap()  argument
20 if (OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_CompareAndSwap()
22 return old_value; in NoBarrier_CompareAndSwap()
25 } while (prev_value == old_value); in NoBarrier_CompareAndSwap()
31 Atomic32 old_value; in NoBarrier_AtomicExchange() local
33 old_value = *ptr; in NoBarrier_AtomicExchange()
34 } while (!OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_AtomicExchange()
36 return old_value; in NoBarrier_AtomicExchange()
54 Atomic32 old_value, in Acquire_CompareAndSwap() argument
58 if (OSAtomicCompareAndSwap32Barrier(old_value, new_value, in Acquire_CompareAndSwap()
60 return old_value; in Acquire_CompareAndSwap()
63 } while (prev_value == old_value); in Acquire_CompareAndSwap()
68 Atomic32 old_value, in Release_CompareAndSwap() argument
70 return Acquire_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
115 Atomic64 old_value, in NoBarrier_CompareAndSwap() argument
119 if (OSAtomicCompareAndSwap64(old_value, new_value, in NoBarrier_CompareAndSwap()
121 return old_value; in NoBarrier_CompareAndSwap()
124 } while (prev_value == old_value); in NoBarrier_CompareAndSwap()
130 Atomic64 old_value; in NoBarrier_AtomicExchange() local
132 old_value = *ptr; in NoBarrier_AtomicExchange()
133 } while (!OSAtomicCompareAndSwap64(old_value, new_value, in NoBarrier_AtomicExchange()
135 return old_value; in NoBarrier_AtomicExchange()
150 Atomic64 old_value, in Acquire_CompareAndSwap() argument
155 old_value, new_value, reinterpret_cast<volatile int64_t*>(ptr))) { in Acquire_CompareAndSwap()
156 return old_value; in Acquire_CompareAndSwap()
159 } while (prev_value == old_value); in Acquire_CompareAndSwap()
164 Atomic64 old_value, in Release_CompareAndSwap() argument
168 return Acquire_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()