Searched refs:new_value (Results 1 – 8 of 8) sorted by relevance
/bionic/libc/private/ |
D | bionic_atomic_x86.h | 35 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() argument 39 : "q" (new_value), "m" (*ptr), "0" (old_value) in __bionic_cmpxchg() 45 __ATOMIC_INLINE__ int32_t __bionic_swap(int32_t new_value, volatile int32_t *ptr) { in __bionic_swap() argument 47 : "=r" (new_value) in __bionic_swap() 48 : "m" (*ptr), "0" (new_value) in __bionic_swap() 50 return new_value; in __bionic_swap()
|
D | bionic_atomic_mips.h | 36 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() argument 45 : [new_value]"r"(new_value), [old_value]"r"(old_value), [ptr]"r"(ptr) in __bionic_cmpxchg() 51 __ATOMIC_INLINE__ int32_t __bionic_swap(int32_t new_value, volatile int32_t* ptr) { in __bionic_swap() argument 58 : [ptr]"r"(ptr), [new_value]"r"(new_value) in __bionic_swap()
|
D | bionic_atomic_gcc_builtin.h | 32 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() argument 34 return __sync_val_compare_and_swap(ptr, old_value, new_value) != old_value; in __bionic_cmpxchg() 37 __ATOMIC_INLINE__ int32_t __bionic_swap(int32_t new_value, volatile int32_t* ptr) { in __bionic_swap() argument 41 } while (__sync_val_compare_and_swap(ptr, old_value, new_value) != old_value); in __bionic_swap()
|
D | bionic_atomic_arm64.h | 28 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() argument 39 : "r" (ptr), "Ir" (old_value), "r" (new_value) in __bionic_cmpxchg() 45 __ATOMIC_INLINE__ int32_t __bionic_swap(int32_t new_value, volatile int32_t* ptr) { in __bionic_swap() argument 53 : "r" (ptr), "r" (new_value) in __bionic_swap()
|
D | bionic_atomic_arm.h | 32 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() argument 44 : "r" (ptr), "Ir" (old_value), "r" (new_value) in __bionic_cmpxchg() 51 __ATOMIC_INLINE__ int32_t __bionic_swap(int32_t new_value, volatile int32_t* ptr) { in __bionic_swap() argument 58 : "r" (ptr), "r" (new_value) in __bionic_swap()
|
/bionic/libc/bionic/ |
D | pthread_once.cpp | 62 int32_t old_value, new_value; in pthread_once() local 70 new_value = old_value | ONCE_INITIALIZING; in pthread_once() 71 } while (__bionic_cmpxchg(old_value, new_value, once_control_ptr) != 0); in pthread_once()
|
D | pthread_cond.cpp | 131 int new_value = ((old_value - COND_COUNTER_STEP) & COND_COUNTER_MASK) | flags; in __pthread_cond_pulse() local 132 if (__bionic_cmpxchg(old_value, new_value, &cond->value) == 0) { in __pthread_cond_pulse()
|
/bionic/linker/ |
D | dlfcn.cpp | 34 static const char* __bionic_set_dlerror(char* new_value) { in __bionic_set_dlerror() argument 38 *dlerror_slot = new_value; in __bionic_set_dlerror()
|