Lines Matching refs:orig
101 atomic_t target, orig; in ZTEST_USER() local
232 orig = ATOMIC_WORD(0x0F0F0F0F0F0F0F0F, 0x0F0F0F0F); in ZTEST_USER()
233 target = orig; in ZTEST_USER()
234 zassert_true(!!(atomic_test_and_clear_bit(&target, i)) == !!(orig & BIT(i)), in ZTEST_USER()
236 zassert_true(target == (orig & ~BIT(i)), "atomic_test_and_clear_bit"); in ZTEST_USER()
241 orig = ATOMIC_WORD(0x0F0F0F0F0F0F0F0F, 0x0F0F0F0F); in ZTEST_USER()
242 target = orig; in ZTEST_USER()
243 zassert_true(!!(atomic_test_and_set_bit(&target, i)) == !!(orig & BIT(i)), in ZTEST_USER()
245 zassert_true(target == (orig | BIT(i)), "atomic_test_and_set_bit"); in ZTEST_USER()
250 orig = ATOMIC_WORD(0x0F0F0F0F0F0F0F0F, 0x0F0F0F0F); in ZTEST_USER()
251 target = orig; in ZTEST_USER()
253 zassert_true(target == (orig & ~BIT(i)), "atomic_clear_bit"); in ZTEST_USER()
258 orig = ATOMIC_WORD(0x0F0F0F0F0F0F0F0F, 0x0F0F0F0F); in ZTEST_USER()
259 target = orig; in ZTEST_USER()
261 zassert_true(target == (orig | BIT(i)), "atomic_set_bit"); in ZTEST_USER()
266 orig = ATOMIC_WORD(0x0F0F0F0F0F0F0F0F, 0x0F0F0F0F); in ZTEST_USER()
267 target = orig; in ZTEST_USER()
269 zassert_true(target == (orig & ~BIT(i)), "atomic_set_bit_to"); in ZTEST_USER()
274 orig = ATOMIC_WORD(0x0F0F0F0F0F0F0F0F, 0x0F0F0F0F); in ZTEST_USER()
275 target = orig; in ZTEST_USER()
277 zassert_true(target == (orig | BIT(i)), "atomic_set_bit_to"); in ZTEST_USER()