Home
last modified time | relevance | path

Searched refs:test_and_set (Results 1 – 13 of 13) sorted by relevance

/external/libcxx/test/std/atomics/atomics.flag/
Dtest_and_set.pass.cpp27 assert(f.test_and_set() == 0); in main()
28 assert(f.test_and_set() == 1); in main()
33 assert(f.test_and_set(std::memory_order_relaxed) == 0); in main()
34 assert(f.test_and_set(std::memory_order_relaxed) == 1); in main()
39 assert(f.test_and_set(std::memory_order_consume) == 0); in main()
40 assert(f.test_and_set(std::memory_order_consume) == 1); in main()
45 assert(f.test_and_set(std::memory_order_acquire) == 0); in main()
46 assert(f.test_and_set(std::memory_order_acquire) == 1); in main()
51 assert(f.test_and_set(std::memory_order_release) == 0); in main()
52 assert(f.test_and_set(std::memory_order_release) == 1); in main()
[all …]
Dclear.pass.cpp26 f.test_and_set(); in main()
28 assert(f.test_and_set() == 0); in main()
32 f.test_and_set(); in main()
34 assert(f.test_and_set() == 0); in main()
38 f.test_and_set(); in main()
40 assert(f.test_and_set() == 0); in main()
44 f.test_and_set(); in main()
46 assert(f.test_and_set() == 0); in main()
50 f.test_and_set(); in main()
52 assert(f.test_and_set() == 0); in main()
[all …]
Datomic_flag_clear_explicit.pass.cpp26 f.test_and_set(); in main()
28 assert(f.test_and_set() == 0); in main()
32 f.test_and_set(); in main()
34 assert(f.test_and_set() == 0); in main()
38 f.test_and_set(); in main()
40 assert(f.test_and_set() == 0); in main()
44 f.test_and_set(); in main()
46 assert(f.test_and_set() == 0); in main()
50 f.test_and_set(); in main()
52 assert(f.test_and_set() == 0); in main()
[all …]
Datomic_flag_test_and_set_explicit.pass.cpp28 assert(f.test_and_set() == 1); in main()
34 assert(f.test_and_set() == 1); in main()
40 assert(f.test_and_set() == 1); in main()
46 assert(f.test_and_set() == 1); in main()
52 assert(f.test_and_set() == 1); in main()
58 assert(f.test_and_set() == 1); in main()
64 assert(f.test_and_set() == 1); in main()
70 assert(f.test_and_set() == 1); in main()
76 assert(f.test_and_set() == 1); in main()
82 assert(f.test_and_set() == 1); in main()
[all …]
Datomic_flag_clear.pass.cpp26 f.test_and_set(); in main()
28 assert(f.test_and_set() == 0); in main()
32 f.test_and_set(); in main()
34 assert(f.test_and_set() == 0); in main()
Datomic_flag_test_and_set.pass.cpp28 assert(f.test_and_set() == 1); in main()
34 assert(f.test_and_set() == 1); in main()
Ddefault.pass.cpp26 assert(f.test_and_set() == 0); in main()
31 assert(!zero.test_and_set()); in main()
Dinit.pass.cpp24 assert(f.test_and_set() == 0); in main()
/external/llvm/unittests/ADT/
DSparseBitVectorTest.cpp29 EXPECT_TRUE(Vec.test_and_set(17)); in TEST()
30 EXPECT_FALSE(Vec.test_and_set(17)); in TEST()
/external/clang/test/CodeGen/
Dbig-atomic-ops.c180 void test_and_set() { in test_and_set() function
Datomic-ops.c301 void test_and_set() { in test_and_set() function
/external/libcxx/include/
Datomic51 bool test_and_set(memory_order m = memory_order_seq_cst) volatile noexcept;
52 bool test_and_set(memory_order m = memory_order_seq_cst) noexcept;
1630 bool test_and_set(memory_order __m = memory_order_seq_cst) volatile _NOEXCEPT
1633 bool test_and_set(memory_order __m = memory_order_seq_cst) _NOEXCEPT
1668 return __o->test_and_set();
1675 return __o->test_and_set();
1682 return __o->test_and_set(__m);
1689 return __o->test_and_set(__m);
/external/llvm/include/llvm/ADT/
DSparseBitVector.h106 bool test_and_set (unsigned Idx) {
540 bool test_and_set (unsigned Idx) {