Lines Matching refs:old
16 op_type old; \
21 : [old] "=d" (old), [ptr] "+Q" (*ptr) \
23 return old; \
67 int old, new; \
74 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
76 return old; \
93 long old, new; \
100 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
102 return old; \
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()