Lines Matching full:new
67 int old, new; \
70 "0: lr %[new],%[old]\n" \
71 op_string " %[new],%[val]\n" \
72 " cs %[old],%[new],%[ptr]\n" \
74 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
93 long old, new; \
96 "0: lgr %[new],%[old]\n" \
97 op_string " %[new],%[val]\n" \
98 " csg %[old],%[new],%[ptr]\n" \
100 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
123 static inline int __atomic_cmpxchg(int *ptr, int old, int new) in __atomic_cmpxchg() argument
125 return __sync_val_compare_and_swap(ptr, old, new); in __atomic_cmpxchg()
128 static inline int __atomic_cmpxchg_bool(int *ptr, int old, int new) in __atomic_cmpxchg_bool() argument
130 return __sync_bool_compare_and_swap(ptr, old, new); in __atomic_cmpxchg_bool()
133 static inline long __atomic64_cmpxchg(long *ptr, long old, long new) in __atomic64_cmpxchg() argument
135 return __sync_val_compare_and_swap(ptr, old, new); in __atomic64_cmpxchg()
138 static inline long __atomic64_cmpxchg_bool(long *ptr, long old, long new) in __atomic64_cmpxchg_bool() argument
140 return __sync_bool_compare_and_swap(ptr, old, new); in __atomic64_cmpxchg_bool()