Home
last modified time | relevance | path

Searched refs:new_value (Results 1 – 2 of 2) sorted by relevance

/system/core/include/cutils/
Datomic-x86.h66 extern inline int android_atomic_cas(int32_t old_value, int32_t new_value, in android_atomic_cas() argument
72 : "q" (new_value), "m" (*ptr), "0" (old_value) in android_atomic_cas()
78 int32_t new_value, in android_atomic_acquire_cas() argument
82 return android_atomic_cas(old_value, new_value, ptr); in android_atomic_acquire_cas()
86 int32_t new_value, in android_atomic_release_cas() argument
90 return android_atomic_cas(old_value, new_value, ptr); in android_atomic_release_cas()
93 extern inline int32_t android_atomic_swap(int32_t new_value, in android_atomic_swap() argument
97 : "=r" (new_value) in android_atomic_swap()
98 : "m" (*ptr), "0" (new_value) in android_atomic_swap()
101 return new_value; in android_atomic_swap()
Datomic-arm.h80 extern int android_atomic_cas(int32_t old_value, int32_t new_value,
83 extern inline int android_atomic_cas(int32_t old_value, int32_t new_value, in android_atomic_cas() argument
93 : "r" (ptr), "Ir" (old_value), "r" (new_value) in android_atomic_cas()
99 extern inline int android_atomic_cas(int32_t old_value, int32_t new_value, in android_atomic_cas() argument
106 status = (*(kuser_cmpxchg *)0xffff0fc0)(old_value, new_value, ptr); in android_atomic_cas()
116 int32_t new_value, in android_atomic_acquire_cas() argument
119 int status = android_atomic_cas(old_value, new_value, ptr); in android_atomic_acquire_cas()
125 int32_t new_value, in android_atomic_release_cas() argument
129 return android_atomic_cas(old_value, new_value, ptr); in android_atomic_release_cas()
134 extern int32_t android_atomic_swap(int32_t new_value,
[all …]