Home
last modified time | relevance | path

Searched refs:test_and_set (Results 1 – 21 of 21) 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.cpp27 assert(f.test_and_set() == 0); in main()
29 assert(f.test_and_set() == 0); in main()
34 assert(f.test_and_set() == 0); in main()
36 assert(f.test_and_set() == 0); in main()
41 assert(f.test_and_set() == 0); in main()
43 assert(f.test_and_set() == 0); in main()
48 assert(f.test_and_set() == 0); in main()
50 assert(f.test_and_set() == 0); in main()
55 assert(f.test_and_set() == 0); in main()
57 assert(f.test_and_set() == 0); in main()
[all …]
Datomic_flag_clear_explicit.pass.cpp27 assert(f.test_and_set() == 0); in main()
29 assert(f.test_and_set() == 0); in main()
34 assert(f.test_and_set() == 0); in main()
36 assert(f.test_and_set() == 0); in main()
41 assert(f.test_and_set() == 0); in main()
43 assert(f.test_and_set() == 0); in main()
48 assert(f.test_and_set() == 0); in main()
50 assert(f.test_and_set() == 0); in main()
55 assert(f.test_and_set() == 0); in main()
57 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.cpp27 f.test_and_set(); in main()
29 assert(f.test_and_set() == 0); in main()
34 f.test_and_set(); in main()
36 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.cpp28 assert(f.test_and_set() == 0); in main()
33 assert(!zero.test_and_set()); in main()
Dinit.pass.cpp25 assert(f.test_and_set() == 0); in main()
/external/libcxx/test/libcxx/atomics/atomics.flag/
Dinit_bool.pass.cpp26 struct X { X() { global.test_and_set(); }}; in X()
34 assert(global.test_and_set() == 1); in main()
38 assert(f.test_and_set() == 0); in main()
42 assert(f.test_and_set() == 1); in main()
/external/swiftshader/third_party/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/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/swiftshader/third_party/llvm-7.0/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/v8/src/trap-handler/
Dhandler-shared.cc61 while (spinlock_.test_and_set(std::memory_order::memory_order_acquire)) { in MetadataLock()
/external/clang/test/CodeGen/
Dbig-atomic-ops.c180 void test_and_set() { in test_and_set() function
Datomic-ops.c309 void test_and_set() { in test_and_set() function
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DSparseBitVector.h106 bool test_and_set (unsigned Idx) {
551 bool test_and_set (unsigned Idx) {
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DSparseBitVector.h103 bool test_and_set(unsigned Idx) { in test_and_set() function
527 bool test_and_set(unsigned Idx) { in test_and_set() function
/external/libcxx/include/
Datomic55 bool test_and_set(memory_order m = memory_order_seq_cst) volatile noexcept;
56 bool test_and_set(memory_order m = memory_order_seq_cst) noexcept;
1725 bool test_and_set(memory_order __m = memory_order_seq_cst) volatile _NOEXCEPT
1728 bool test_and_set(memory_order __m = memory_order_seq_cst) _NOEXCEPT
1763 return __o->test_and_set();
1770 return __o->test_and_set();
1777 return __o->test_and_set(__m);
1784 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) {
/external/tensorflow/tensorflow/contrib/mpi_collectives/kernels/
Dmpi_ops.cc801 if (mpi_global.initialized_flag.test_and_set()) return mpi_global.init_status; in InitializeMPIOnce()
/external/tensorflow/tensorflow/contrib/mpi_collectives/
Dmpi_ops.cc802 if (mpi_global.initialized_flag.test_and_set()) return mpi_global.init_status; in InitializeMPIOnce()