Home
last modified time | relevance | path

Searched refs:old_value (Results 1 – 3 of 3) sorted by relevance

/bionic/libc/private/
Dbionic_atomic_x86.h42 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() argument
47 : "q" (new_value), "m" (*ptr), "0" (old_value) in __bionic_cmpxchg()
49 return prev != old_value; in __bionic_cmpxchg()
Dbionic_atomic_arm.h140 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() argument
155 : "r" (ptr), "Ir" (old_value), "r" (new_value) in __bionic_cmpxchg()
158 return prev != old_value; in __bionic_cmpxchg()
166 __kernel_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __kernel_cmpxchg() argument
169 return (*(kernel_cmpxchg *)0xffff0fc0)(old_value, new_value, ptr); in __kernel_cmpxchg()
173 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() argument
175 return __kernel_cmpxchg(old_value, new_value, ptr); in __bionic_cmpxchg()
Dbionic_atomic_gcc_builtin.h31 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() argument
34 return __sync_bool_compare_and_swap(ptr, old_value, new_value) == 0; in __bionic_cmpxchg()