Home
last modified time | relevance | path

Searched refs:memory_order_acq_rel (Results 1 – 25 of 56) sorted by relevance

123

/external/libcxx/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.fail.cpp31 …x.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operation… in main()
33 …vx.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operatio… in main()
42 …std::atomic_load_explicit(&x, std::memory_order_acq_rel); // expected-warning {{memory order argum… in main()
44 …std::atomic_load_explicit(&vx, std::memory_order_acq_rel); // expected-warning {{memory order argu… in main()
55 …x.store(42, std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic oper… in main()
58 …vx.store(42, std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic ope… in main()
67 …std::atomic_store_explicit(&x, 42, std::memory_order_acq_rel); // expected-warning {{memory order … in main()
70 …std::atomic_store_explicit(&vx, 42, std::memory_order_acq_rel); // expected-warning {{memory order… in main()
79 …x.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // expe… in main()
81 …vx.compare_exchange_weak(val1, val2, std::memory_order_seq_cst, std::memory_order_acq_rel); // exp… in main()
[all …]
/external/clang/test/Sema/
Datomic-ops.c252 k = atomic_fetch_and_explicit(&n, k, memory_order_acq_rel); in f()
285 …(void)__c11_atomic_load(Ap, memory_order_acq_rel); // expected-warning {{memory order argument to … in memory_checks()
295 …(void)__c11_atomic_store(Ap, val, memory_order_acq_rel); // expected-warning {{memory order argume… in memory_checks()
302 (void)__c11_atomic_fetch_add(Ap, 1, memory_order_acq_rel); in memory_checks()
320 (void)__c11_atomic_fetch_sub(Ap, val, memory_order_acq_rel); in memory_checks()
327 (void)__c11_atomic_fetch_and(Ap, val, memory_order_acq_rel); in memory_checks()
334 (void)__c11_atomic_fetch_or(Ap, val, memory_order_acq_rel); in memory_checks()
341 (void)__c11_atomic_fetch_xor(Ap, val, memory_order_acq_rel); in memory_checks()
348 (void)__c11_atomic_exchange(Ap, val, memory_order_acq_rel); in memory_checks()
355 …(void)__c11_atomic_compare_exchange_strong(Ap, p, val, memory_order_acq_rel, memory_order_relaxed); in memory_checks()
[all …]
/external/libcxx/test/std/atomics/atomics.general/
Dreplace_failure_order.pass.cpp32 i.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
34 i.compare_exchange_strong(exp, 0, std::memory_order_acq_rel); in main()
37 v.compare_exchange_weak(exp, 0, std::memory_order_acq_rel); in main()
39 v.compare_exchange_strong(exp, 0, std::memory_order_acq_rel); in main()
/external/swiftshader/src/Reactor/
DThread.hpp307 inline void operator--() { ai.fetch_sub(1, std::memory_order_acq_rel); } in operator --()
308 inline void operator++() { ai.fetch_add(1, std::memory_order_acq_rel); } in operator ++()
309 inline int operator--(int) { return ai.fetch_sub(1, std::memory_order_acq_rel) - 1; } in operator --()
310 inline int operator++(int) { return ai.fetch_add(1, std::memory_order_acq_rel) + 1; } in operator ++()
311 inline void operator-=(int i) { ai.fetch_sub(i, std::memory_order_acq_rel); } in operator -=()
312 inline void operator+=(int i) { ai.fetch_add(i, std::memory_order_acq_rel); } in operator +=()
/external/swiftshader/src/Common/
DThread.hpp307 inline void operator--() { ai.fetch_sub(1, std::memory_order_acq_rel); } in operator --()
308 inline void operator++() { ai.fetch_add(1, std::memory_order_acq_rel); } in operator ++()
309 inline int operator--(int) { return ai.fetch_sub(1, std::memory_order_acq_rel) - 1; } in operator --()
310 inline int operator++(int) { return ai.fetch_add(1, std::memory_order_acq_rel) + 1; } in operator ++()
311 inline void operator-=(int i) { ai.fetch_sub(i, std::memory_order_acq_rel); } in operator -=()
312 inline void operator+=(int i) { ai.fetch_add(i, std::memory_order_acq_rel); } in operator +=()
/external/swiftshader/src/System/
DThread.hpp307 inline void operator--() { ai.fetch_sub(1, std::memory_order_acq_rel); } in operator --()
308 inline void operator++() { ai.fetch_add(1, std::memory_order_acq_rel); } in operator ++()
309 inline int operator--(int) { return ai.fetch_sub(1, std::memory_order_acq_rel) - 1; } in operator --()
310 inline int operator++(int) { return ai.fetch_add(1, std::memory_order_acq_rel) + 1; } in operator ++()
311 inline void operator-=(int i) { ai.fetch_sub(i, std::memory_order_acq_rel); } in operator -=()
312 inline void operator+=(int i) { ai.fetch_add(i, std::memory_order_acq_rel); } in operator +=()
/external/libcxx/test/std/atomics/atomics.flag/
Dtest_and_set.pass.cpp57 assert(f.test_and_set(std::memory_order_acq_rel) == 0); in main()
58 assert(f.test_and_set(std::memory_order_acq_rel) == 1); in main()
99 assert(f.test_and_set(std::memory_order_acq_rel) == 0); in main()
100 assert(f.test_and_set(std::memory_order_acq_rel) == 1); in main()
Datomic_flag_test_and_set_explicit.pass.cpp51 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_acq_rel) == 0); in main()
87 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_acq_rel) == 0); in main()
/external/tensorflow/tensorflow/core/lib/core/
Dblocking_counter.h37 unsigned int v = state_.fetch_sub(2, std::memory_order_acq_rel) - 2; in DecrementCount()
49 unsigned int v = state_.fetch_or(1, std::memory_order_acq_rel); in Wait()
59 unsigned int v = state_.fetch_or(1, std::memory_order_acq_rel); in WaitFor()
/external/skqp/src/gpu/vk/
DGrVkResource.h124 int newRefCount = fRefCnt.fetch_add(-1, std::memory_order_acq_rel); in unref()
137 int newRefCount = fRefCnt.fetch_add(-1, std::memory_order_acq_rel); in unrefAndAbandon()
/external/skia/src/gpu/vk/
DGrVkResource.h124 int newRefCount = fRefCnt.fetch_add(-1, std::memory_order_acq_rel); in unref()
137 int newRefCount = fRefCnt.fetch_add(-1, std::memory_order_acq_rel); in unrefAndAbandon()
/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc187 std::memory_order_acq_rel)) { in TryAcquireChunk()
211 std::memory_order_acq_rel)) { in TryPartitionPage()
278 std::memory_order_acq_rel)) { in ReleaseChunk()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtraceme_recorder.cc204 expected, level, std::memory_order_acq_rel)) { in Start()
223 kTracingDisabled, std::memory_order_acq_rel) == kTracingDisabled) { in Stop()
/external/libcxx/test/std/atomics/atomics.order/
Dmemory_order.pass.cpp29 assert(std::memory_order_acq_rel == 4); in main()
/external/clang/test/CodeGen/
Darm-atomics.c10 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator
Darm-atomics-m0.c8 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator
Darm-atomics-m.c8 memory_order_release, memory_order_acq_rel, memory_order_seq_cst enumerator
Datomic-arm64.c9 memory_order_acq_rel = 4, enumerator
Datomics-inlining.c19 memory_order_acq_rel, enumerator
/external/libchrome/base/metrics/
Dpersistent_memory_allocator.cc246 last, next, std::memory_order_acq_rel, std::memory_order_acquire)) { in GetNext()
610 std::memory_order_acq_rel, in ChangeType()
691 freeptr, new_freeptr, std::memory_order_acq_rel, in AllocateImpl()
716 freeptr, new_freeptr, std::memory_order_acq_rel, in AllocateImpl()
807 std::memory_order_acq_rel, in MakeIterable()
828 std::memory_order_acq_rel, in MakeIterable()
/external/libchrome/base/
Datomic_ref_count.h37 return ref_count_.fetch_sub(1, std::memory_order_acq_rel) != 1; in Decrement()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_atomic.h26 memory_order_acq_rel = 1 << 4, enumerator
/external/skia/include/private/
DSkWeakRefCnt.h127 if (1 == fWeakCnt.fetch_add(-1, std::memory_order_acq_rel)) { in weak_unref()
/external/skqp/include/private/
DSkWeakRefCnt.h127 if (1 == fWeakCnt.fetch_add(-1, std::memory_order_acq_rel)) { in weak_unref()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorDeviceThreadPool.h38 unsigned int v = state_.fetch_sub(2, std::memory_order_acq_rel) - 2; in Notify()
50 unsigned int v = state_.fetch_or(1, std::memory_order_acq_rel); in Wait()

123