Searched defs:old_value (Results 1 - 9 of 9) sorted by relevance

/bionic/libc/bionic/
H A Dpthread_once.cpp62 int32_t old_value, new_value; local
65 old_value = *once_control_ptr;
66 if ((old_value & ONCE_COMPLETED) != 0) {
70 new_value = old_value | ONCE_INITIALIZING;
71 } while (__bionic_cmpxchg(old_value, new_value, once_control_ptr) != 0);
73 if ((old_value & ONCE_COMPLETED) != 0) {
79 if ((old_value & ONCE_INITIALIZING) == 0) {
86 __futex_wait_ex(once_control_ptr, 0, old_value, NULL);
H A Dpthread_internal.h56 pid_t old_value; local
57 get_cached_pid(&old_value);
59 return old_value;
H A Dpthread_cond.cpp130 int old_value = cond->value; local
131 int new_value = ((old_value - COND_COUNTER_STEP) & COND_COUNTER_MASK) | flags;
132 if (__bionic_cmpxchg(old_value, new_value, &cond->value) == 0) {
153 int old_value = cond->value; local
156 int status = __futex_wait_ex(&cond->value, COND_IS_SHARED(cond->value), old_value, reltime);
/bionic/libc/private/
H A Dbionic_atomic_gcc_builtin.h32 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) { argument
34 return __sync_val_compare_and_swap(ptr, old_value, new_value) != old_value;
38 int32_t old_value; local
40 old_value = *ptr;
41 } while (__sync_val_compare_and_swap(ptr, old_value, new_value) != old_value);
42 return old_value;
H A Dbionic_atomic_mips.h36 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) { argument
40 " bne %[old_value], %[prev], 2f \n"
45 : [new_value]"r"(new_value), [old_value]"r"(old_value), [ptr]"r"(ptr)
47 return prev != old_value;
H A Dbionic_atomic_x86.h35 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) { argument
39 : "q" (new_value), "m" (*ptr), "0" (old_value)
41 return prev != old_value;
H A Dbionic_atomic_arm.h32 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) { argument
44 : "r" (ptr), "Ir" (old_value), "r" (new_value)
47 return prev != old_value;
H A Dbionic_atomic_arm64.h28 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) { argument
39 : "r" (ptr), "Ir" (old_value), "r" (new_value)
41 return oldval != old_value;
/bionic/linker/
H A Ddlfcn.cpp37 const char* old_value = *dlerror_slot; local
39 return old_value;
54 const char* old_value = __bionic_set_dlerror(NULL); local
55 return old_value;

Completed in 78 milliseconds