Home
last modified time | relevance | path

Searched refs:atomic_fetch_add (Results 1 – 21 of 21) sorted by relevance

/external/libcxx/test/atomics/atomics.types.operations/atomics.types.operations.req/
Datomic_fetch_add.pass.cpp40 assert(std::atomic_fetch_add(&t, T(2)) == T(1)); in test()
47 assert(std::atomic_fetch_add(&t, T(2)) == T(1)); in test()
61 assert(std::atomic_fetch_add(&t, 2) == T(1*sizeof(X))); in testp()
69 assert(std::atomic_fetch_add(&t, 2) == T(1*sizeof(X))); in testp()
DAndroid.mk75 test_name := atomics/atomics.types.operations/atomics.types.operations.req/atomic_fetch_add
76 test_src := atomic_fetch_add.pass.cpp
/external/compiler-rt/lib/dfsan/
Ddfsan.cc108 atomic_fetch_add(&__dfsan_last_label, 1, memory_order_relaxed) + 1; in __dfsan_union()
162 atomic_fetch_add(&__dfsan_last_label, 1, memory_order_relaxed) + 1; in dfsan_create_label()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_atomic_msvc.h102 INLINE u32 atomic_fetch_add(volatile atomic_uint32_t *a, in atomic_fetch_add() function
110 INLINE uptr atomic_fetch_add(volatile atomic_uintptr_t *a, in atomic_fetch_add() function
Dsanitizer_atomic_clang.h47 INLINE typename T::Type atomic_fetch_add(volatile T *a, in atomic_fetch_add() function
Dsanitizer_coverage_libcdep.cc183 uptr idx = atomic_fetch_add(&pc_array_index, 1, memory_order_relaxed); in Add()
276 if (atomic_fetch_add(&dump_once_guard, 1, memory_order_relaxed)) in CovDump()
Dsanitizer_mutex.h112 u32 prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire); in ReadLock()
Dsanitizer_tls_get_addr.cc60 atomic_fetch_add(&number_of_live_dtls, 1, memory_order_relaxed); in DTLS_Resize()
Dsanitizer_stackdepot.cc98 atomic_fetch_add(&node_->hash_and_use_count, 1, memory_order_relaxed) & in inc_use_count_unsafe()
Dsanitizer_stackdepotbase.h115 u32 id = atomic_fetch_add(&seq[part], 1, memory_order_relaxed) + 1; in Put()
Dsanitizer_common.cc253 atomic_fetch_add(&g_total_mmaped, size, memory_order_relaxed) + size; in IncreaseTotalMmap()
/external/qemu/include/qemu/
Datomic.h188 #define atomic_fetch_add __sync_fetch_and_add macro
/external/compiler-rt/lib/tsan/dd/
Ddd_rtl.cc98 uptr id = atomic_fetch_add(&id_gen, 1, memory_order_relaxed); in ThreadInit()
/external/libcxx/include/
Datomic364 atomic_fetch_add(volatile atomic<Integral>* obj, Integral op) noexcept;
368 atomic_fetch_add(atomic<Integral>* obj, Integral op) noexcept;
445 atomic_fetch_add(volatile atomic<T*>* obj, ptrdiff_t op) noexcept;
449 atomic_fetch_add(atomic<T*>* obj, ptrdiff_t op) noexcept;
722 // atomic_fetch_add. Force a failure rather than creating bad behavior.
1280 // atomic_fetch_add
1289 atomic_fetch_add(volatile atomic<_Tp>* __o, _Tp __op) _NOEXCEPT
1301 atomic_fetch_add(atomic<_Tp>* __o, _Tp __op) _NOEXCEPT
1309 atomic_fetch_add(volatile atomic<_Tp*>* __o, ptrdiff_t __op) _NOEXCEPT
1317 atomic_fetch_add(atomic<_Tp*>* __o, ptrdiff_t __op) _NOEXCEPT
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc259 uptr prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire); in ReadLock()
Dtsan_sync.cc165 const u64 uid = atomic_fetch_add(&uid_gen_, 1, memory_order_relaxed); in GetAndLock()
Dtsan_fd.cc58 atomic_fetch_add(&s->rc, 1, memory_order_relaxed); in ref()
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_test_util_linux.cc84 uintptr_t addr = atomic_fetch_add(&uniq, size, memory_order_relaxed); in allocate_addr()
/external/compiler-rt/lib/asan/
Dasan_rtl.cc40 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) { in AsanDie()
Dasan_report.cc554 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) { in ScopedInErrorReport()
/external/compiler-rt/lib/msan/
Dmsan.cc577 u32 idx = atomic_fetch_add(&NumStackOriginDescrs, 1, memory_order_relaxed); in __msan_set_alloca_origin4()