Lines Matching refs:i
90 atomic_int i; in TEST() local
91 atomic_store(&i, 123); in TEST()
92 ASSERT_EQ(123, atomic_load(&i)); 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()
98 atomic_int i; in TEST() local
99 atomic_store(&i, 123); in TEST()
100 ASSERT_EQ(123, atomic_exchange(&i, 456)); in TEST()
101 ASSERT_EQ(456, atomic_exchange_explicit(&i, 123, memory_order_relaxed)); in TEST()
105 atomic_int i; in TEST() local
108 atomic_store(&i, 123); in TEST()
110 ASSERT_TRUE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
111 ASSERT_FALSE(atomic_compare_exchange_strong(&i, &expected, 456)); in TEST()
114 atomic_store(&i, 123); in TEST()
116 ASSERT_TRUE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
118 ASSERT_FALSE(atomic_compare_exchange_strong_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
122 atomic_store(&i, 123); in TEST()
129 } while(!atomic_compare_exchange_weak(&i, &expected, 456)); in TEST()
130 ASSERT_FALSE(atomic_compare_exchange_weak(&i, &expected, 456)); in TEST()
133 atomic_store(&i, 123); in TEST()
140 } while(!atomic_compare_exchange_weak_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
142 ASSERT_FALSE(atomic_compare_exchange_weak_explicit(&i, &expected, 456, memory_order_relaxed, in TEST()
148 atomic_int i = ATOMIC_VAR_INIT(123); in TEST() local
149 ASSERT_EQ(123, atomic_fetch_add(&i, 1)); in TEST()
150 ASSERT_EQ(124, atomic_fetch_add_explicit(&i, 1, memory_order_relaxed)); in TEST()
151 ASSERT_EQ(125, atomic_load(&i)); in TEST()
155 atomic_int i = ATOMIC_VAR_INIT(123); in TEST() local
156 ASSERT_EQ(123, atomic_fetch_sub(&i, 1)); in TEST()
157 ASSERT_EQ(122, atomic_fetch_sub_explicit(&i, 1, memory_order_relaxed)); in TEST()
158 ASSERT_EQ(121, atomic_load(&i)); in TEST()
162 atomic_int i = ATOMIC_VAR_INIT(0x100); in TEST() local
163 ASSERT_EQ(0x100, atomic_fetch_or(&i, 0x020)); in TEST()
164 ASSERT_EQ(0x120, atomic_fetch_or_explicit(&i, 0x003, memory_order_relaxed)); in TEST()
165 ASSERT_EQ(0x123, atomic_load(&i)); in TEST()
169 atomic_int i = ATOMIC_VAR_INIT(0x100); in TEST() local
170 ASSERT_EQ(0x100, atomic_fetch_xor(&i, 0x120)); in TEST()
171 ASSERT_EQ(0x020, atomic_fetch_xor_explicit(&i, 0x103, memory_order_relaxed)); in TEST()
172 ASSERT_EQ(0x123, atomic_load(&i)); in TEST()
176 atomic_int i = ATOMIC_VAR_INIT(0x123); in TEST() local
177 ASSERT_EQ(0x123, atomic_fetch_and(&i, 0x00f)); in TEST()
178 ASSERT_EQ(0x003, atomic_fetch_and_explicit(&i, 0x2, memory_order_relaxed)); in TEST()
179 ASSERT_EQ(0x002, atomic_load(&i)); in TEST()
198 for (uint_least32_t i = 0; i <= BIG; i+=2) { in writer() local
199 atomic_store_explicit(&a->x, i, memory_order_relaxed); in writer()
200 atomic_store_explicit(&a->z, i, memory_order_relaxed); in writer()
201 atomic_store_explicit(&a->y, i, memory_order_release); 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()
204 atomic_store_explicit(&a->y, i+1, memory_order_release); in writer()