Lines Matching refs:prev

107 	bool prev = (bool) InterlockedCompareExchange8(&obj->value, *expected, desired);  in zend_atomic_bool_compare_exchange_ex()  local
108 if (prev == *expected) { in zend_atomic_bool_compare_exchange_ex()
111 *expected = prev; in zend_atomic_bool_compare_exchange_ex()
117 int prev = (int) InterlockedCompareExchange(&obj->value, *expected, desired); in zend_atomic_int_compare_exchange_ex() local
118 if (prev == *expected) { in zend_atomic_int_compare_exchange_ex()
121 *expected = prev; in zend_atomic_int_compare_exchange_ex()
196 bool prev = false;
197 __atomic_exchange(&obj->value, &desired, &prev, __ATOMIC_SEQ_CST);
198 return prev;
202 int prev = false;
203 __atomic_exchange(&obj->value, &desired, &prev, __ATOMIC_SEQ_CST);
204 return prev;
216 bool prev = false;
217 __atomic_load(&obj->value, &prev, __ATOMIC_SEQ_CST);
218 return prev;
222 int prev = false;
223 __atomic_load(&obj->value, &prev, __ATOMIC_SEQ_CST);
224 return prev;
244 bool prev = __sync_lock_test_and_set(&obj->value, desired);
250 return prev;
254 int prev = __sync_lock_test_and_set(&obj->value, desired);
260 return prev;
264 bool prev = __sync_val_compare_and_swap(&obj->value, *expected, desired);
265 if (prev == *expected) {
268 *expected = prev;
274 int prev = __sync_val_compare_and_swap(&obj->value, *expected, desired);
275 if (prev == *expected) {
278 *expected = prev;
324 bool prev = obj->value;
325 if (prev == *expected) {
329 *expected = prev;
335 int prev = obj->value;
336 if (prev == *expected) {
340 *expected = prev;
354 bool prev = obj->value;
356 return prev;
360 int prev = obj->value;
362 return prev;