Lines Matching refs:ones
46 #define test_atomic_assign(type, ones) \ argument
50 p_atomic_set(&v, ones); \
51 assert(v == ones && "p_atomic_set"); \
54 assert(r == ones && "p_atomic_read"); \
56 v = ones; \
58 assert(v == ones && "p_atomic_cmpxchg"); \
59 assert(r == ones && "p_atomic_cmpxchg"); \
60 r = p_atomic_cmpxchg(&v, ones, 0); \
62 assert(r == ones && "p_atomic_cmpxchg"); \
69 #define test_atomic_8bits(type, ones) \ argument
70 test_atomic_assign(type, ones) \
87 #define test_atomic(type, ones) \ argument
88 test_atomic_8bits(type, ones) \
104 assert(v == ones && "p_atomic_dec_zero"); \
107 v = ones; \
111 v = ones; \
118 assert(v == ones && "p_atomic_dec"); \
122 assert(v == ones && "p_atomic_dec_return"); \