Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/compiler-rt/lib/xray/
H A Dxray_fdr_log_writer.h89 atomic_fetch_add(Buffer.Extents, sizeof(T), memory_order_acq_rel);
119 atomic_fetch_add(Buffer.Extents, Size, memory_order_acq_rel);
163 atomic_fetch_add(Buffer.Extents, sizeof(R) + sizeof(A),
188 atomic_fetch_add(Buffer.Extents, sizeof(R) + EventSize,
211 atomic_fetch_add(Buffer.Extents, EventSize, memory_order_acq_rel);
H A Dxray_buffer_queue.cc54 atomic_fetch_add(&C->RefCount, 1, memory_order_acq_rel); in incRefCount()
112 atomic_fetch_add(&Generation, 1, memory_order_acq_rel); in init()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_atomic_clang_mips.h41 INLINE atomic_uint64_t::Type atomic_fetch_add(volatile atomic_uint64_t *ptr, in atomic_fetch_add() function
62 return atomic_fetch_add(ptr, -val, mo); in atomic_fetch_sub()
100 return atomic_fetch_add(Newptr, zero, mo); in atomic_load()
H A Dsanitizer_atomic_msvc.h115 INLINE u32 atomic_fetch_add(volatile atomic_uint32_t *a, in atomic_fetch_add() function
123 INLINE uptr atomic_fetch_add(volatile atomic_uintptr_t *a, in atomic_fetch_add() function
H A Dsanitizer_termination.cc73 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) > 10) { in CheckFailed()
H A Dsanitizer_atomic_clang.h47 INLINE typename T::Type atomic_fetch_add(volatile T *a, in atomic_fetch_add() function
H A Dsanitizer_mutex.h123 u32 prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire); in ReadLock()
H A Dsanitizer_tls_get_addr.cc60 atomic_fetch_add(&number_of_live_dtls, 1, memory_order_relaxed); in DTLS_Resize()
H A Dsanitizer_stackdepot.cc97 atomic_fetch_add(&node_->hash_and_use_count, 1, memory_order_relaxed) & in inc_use_count_unsafe()
H A Dsanitizer_stackdepotbase.h119 u32 id = atomic_fetch_add(&seq[part], 1, memory_order_relaxed) + 1; in Put()
H A Dsanitizer_common.cc184 atomic_fetch_add(&g_total_mmaped, size, memory_order_relaxed) + size; in IncreaseTotalMmap()
/freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_suppressions.cc101 atomic_fetch_add(&(*sp)->hit_count, 1, memory_order_relaxed); in IsSuppressed()
139 atomic_fetch_add(&s->hit_count, 1, memory_order_relaxed); in IsSuppressed()
H A Dtsan_external.cc77 uptr new_tag = atomic_fetch_add(&used_tags, 1, memory_order_relaxed); in __tsan_external_register_tag()
H A Dtsan_interface_ann.cc135 atomic_fetch_add(&race->hitcount, 1, memory_order_relaxed); in CheckContains()
174 atomic_fetch_add(&(race0->*counter), cnt, memory_order_relaxed); in CollectMatchedBenignRaces()
H A Dtsan_clock.cc263 atomic_fetch_add(ref_ptr(dst->tab_), 1, memory_order_relaxed); in ReleaseStore()
305 atomic_fetch_add(ref_ptr(dst->tab_), 1, memory_order_relaxed); in ReleaseStore()
H A Dtsan_mutex.cc262 uptr prev = atomic_fetch_add(&state_, kReadLock, memory_order_acquire); in ReadLock()
H A Dtsan_sync.cc242 const u64 uid = atomic_fetch_add(&uid_gen_, 1, memory_order_relaxed); in GetAndLock()
/freebsd-12.1/contrib/ofed/librdmacm/
H A Dcma.h68 if (atomic_fetch_add(&lock->cnt, 1) > 0) in fastlock_acquire()
/freebsd-12.1/contrib/compiler-rt/lib/dfsan/
H A Ddfsan.cc193 atomic_fetch_add(&__dfsan_last_label, 1, memory_order_relaxed) + 1; in __dfsan_union()
256 atomic_fetch_add(&__dfsan_last_label, 1, memory_order_relaxed) + 1; in dfsan_create_label()
/freebsd-12.1/lib/libnetgraph/
H A Dmsg.c76 msg.header.token = atomic_fetch_add(&gMsgId, 1) & INT_MAX; in NgSendMsg()
145 binary->header.token = atomic_fetch_add(&gMsgId, 1) & INT_MAX; in NgSendAsciiMsg()
/freebsd-12.1/contrib/compiler-rt/lib/scudo/
H A Dscudo_tsd_shared.cpp64 u32 Index = atomic_fetch_add(&CurrentIndex, 1, memory_order_relaxed); in initThread()
/freebsd-12.1/contrib/compiler-rt/lib/asan/
H A Dasan_rtl.cc45 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) != 0) { in AsanDie()
73 if (atomic_fetch_add(&num_calls, 1, memory_order_relaxed) == 0) { in AsanCheckFailed()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Headers/
H A Dstdatomic.h146 #define atomic_fetch_add(object, operand) __c11_atomic_fetch_add(object, operand, __ATOMIC_SEQ_CST) macro
/freebsd-12.1/contrib/compiler-rt/lib/tsan/dd/
H A Ddd_rtl.cc102 uptr id = atomic_fetch_add(&id_gen, 1, memory_order_relaxed); in ThreadInit()
/freebsd-12.1/contrib/libc++/include/
H A Datomic371 atomic_fetch_add(volatile atomic<Integral>* obj, Integral op) noexcept;
375 atomic_fetch_add(atomic<Integral>* obj, Integral op) noexcept;
452 atomic_fetch_add(volatile atomic<T*>* obj, ptrdiff_t op) noexcept;
456 atomic_fetch_add(atomic<T*>* obj, ptrdiff_t op) noexcept;
779 // atomic_fetch_add. Force a failure rather than creating bad behavior.
1392 // atomic_fetch_add
1401 atomic_fetch_add(volatile atomic<_Tp>* __o, _Tp __op) _NOEXCEPT
1413 atomic_fetch_add(atomic<_Tp>* __o, _Tp __op) _NOEXCEPT
1421 atomic_fetch_add(volatile atomic<_Tp*>* __o, ptrdiff_t __op) _NOEXCEPT
1429 atomic_fetch_add(atomic<_Tp*>* __o, ptrdiff_t __op) _NOEXCEPT

12