Lines Matching refs:mem

27 #define __arch_compare_and_exchange_bool_8_acq(mem, newval, oldval) \  argument
30 #define __arch_compare_and_exchange_bool_16_acq(mem, newval, oldval) \ argument
33 #define __arch_compare_and_exchange_bool_32_acq(mem, newval, oldval) \ argument
34 (!__sync_bool_compare_and_swap ((mem), (int) (long) (oldval), \
37 #define __arch_compare_and_exchange_bool_64_acq(mem, newval, oldval) \ argument
38 (!__sync_bool_compare_and_swap ((mem), (long) (oldval), \
41 #define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \ argument
42 (abort (), (__typeof (*mem)) 0)
44 #define __arch_compare_and_exchange_val_16_acq(mem, newval, oldval) \ argument
45 (abort (), (__typeof (*mem)) 0)
47 #define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \ argument
48 __sync_val_compare_and_swap ((mem), (int) (long) (oldval), \
51 #define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \ argument
52 __sync_val_compare_and_swap ((mem), (long) (oldval), (long) (newval))
55 #define atomic_exchange_acq(mem, value) \ argument
56 __sync_lock_test_and_set (mem, value)
58 #define atomic_exchange_rel(mem, value) \ argument
59 (__sync_synchronize (), __sync_lock_test_and_set (mem, value))
61 #define atomic_exchange_and_add(mem, value) \ argument
62 __sync_fetch_and_add ((mem), (value))
64 #define atomic_decrement_if_positive(mem) \ argument
65 ({ __typeof (*mem) __oldval, __val; \
66 __typeof (mem) __memp = (mem); \
80 #define atomic_bit_test_set(mem, bit) \ argument
81 ({ __typeof (*mem) __oldval, __val; \
82 __typeof (mem) __memp = (mem); \
83 __typeof (*mem) __mask = ((__typeof (*mem)) 1 << (bit)); \