Searched defs:old_value (Results 1 - 5 of 5) sorted by relevance
/bionic/libc/include/sys/ |
H A D | atomics.h | 50 __atomic_cmpxchg(int old_value, int new_value, volatile int* ptr) argument 53 return __sync_val_compare_and_swap(ptr, old_value, new_value) != old_value; 59 int old_value; local 61 old_value = *ptr; 62 } while (__sync_val_compare_and_swap(ptr, old_value, new_value) != old_value); 63 return old_value;
|
/bionic/libc/private/ |
H A D | bionic_atomic_gcc_builtin.h | 31 __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; 40 int32_t old_value; local 42 old_value = *ptr; 43 } while (__sync_val_compare_and_swap(ptr, old_value, new_value) != old_value); 44 return old_value;
|
H A D | bionic_atomic_mips.h | 42 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 47 " bne %[old_value], %[prev], 2f \n" 52 : [new_value]"r"(new_value), [old_value]"r"(old_value), [ptr]"r"(ptr) 54 return prev != old_value;
|
H A D | bionic_atomic_x86.h | 42 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 47 : "q" (new_value), "m" (*ptr), "0" (old_value) 49 return prev != old_value;
|
H A D | bionic_atomic_arm.h | 140 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 155 : "r" (ptr), "Ir" (old_value), "r" (new_value) 158 return prev != old_value; 166 __kernel_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 169 return (*(kernel_cmpxchg *)0xffff0fc0)(old_value, new_value, ptr); 173 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) argument 175 return __kernel_cmpxchg(old_value, new_value, ptr);
|
Completed in 47 milliseconds