Lines Matching refs:memory_order_relaxed
51 atomic_thread_fence(memory_order_relaxed); in TEST()
60 atomic_signal_fence(memory_order_relaxed); in TEST()
82 ASSERT_FALSE(atomic_flag_test_and_set_explicit(&f, memory_order_relaxed)); in TEST()
83 ASSERT_TRUE(atomic_flag_test_and_set_explicit(&f, memory_order_relaxed)); in TEST()
85 atomic_flag_clear_explicit(&f, memory_order_relaxed); in TEST()
86 ASSERT_FALSE(atomic_flag_test_and_set_explicit(&f, memory_order_relaxed)); in TEST()
93 atomic_store_explicit(&i, 123, memory_order_relaxed); in TEST()
94 ASSERT_EQ(123, atomic_load_explicit(&i, memory_order_relaxed)); in TEST()
101 ASSERT_EQ(456, atomic_exchange_explicit(&i, 123, memory_order_relaxed)); in TEST()
116 ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
117 memory_order_relaxed)); in TEST()
118 ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
119 memory_order_relaxed)); in TEST()
140 } while(!atomic_compare_exchange_weak_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
141 memory_order_relaxed)); in TEST()
142 ASSERT_FALSE(atomic_compare_exchange_weak_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
143 memory_order_relaxed)); in TEST()
150 ASSERT_EQ(124, atomic_fetch_add_explicit(&i, 1, memory_order_relaxed)); in TEST()
157 ASSERT_EQ(122, atomic_fetch_sub_explicit(&i, 1, memory_order_relaxed)); in TEST()
164 ASSERT_EQ(0x120, atomic_fetch_or_explicit(&i, 0x003, memory_order_relaxed)); in TEST()
171 ASSERT_EQ(0x020, atomic_fetch_xor_explicit(&i, 0x103, memory_order_relaxed)); in TEST()
178 ASSERT_EQ(0x003, atomic_fetch_and_explicit(&i, 0x2, memory_order_relaxed)); in TEST()
199 atomic_store_explicit(&a->x, i, memory_order_relaxed); in writer()
200 atomic_store_explicit(&a->z, i, memory_order_relaxed); in writer()
202 atomic_store_explicit(&a->x, i+1, memory_order_relaxed); in writer()
203 atomic_store_explicit(&a->z, i+1, memory_order_relaxed); in writer()
216 zval = atomic_load_explicit(&a->z, memory_order_relaxed); in reader()
217 xval = atomic_load_explicit(&a->x, memory_order_relaxed); in reader()