Home
last modified time | relevance | path

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

/external/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
Datomic_fetch_sub.pass.cpp43 assert(std::atomic_fetch_sub(&t, T(2)) == T(3)); in test()
50 assert(std::atomic_fetch_sub(&t, T(2)) == T(3)); in test()
64 assert(std::atomic_fetch_sub(&t, 2) == T(3*sizeof(X))); in testp()
72 assert(std::atomic_fetch_sub(&t, 2) == T(3*sizeof(X))); in testp()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h112 u32 prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release); in Unlock()
125 u32 prev = atomic_fetch_sub(&state_, kReadLock, memory_order_release); in ReadUnlock()
Dsanitizer_atomic_msvc.h132 INLINE u32 atomic_fetch_sub(volatile atomic_uint32_t *a, in atomic_fetch_sub() function
140 INLINE uptr atomic_fetch_sub(volatile atomic_uintptr_t *a, in atomic_fetch_sub() function
Dsanitizer_atomic_clang.h55 INLINE typename T::Type atomic_fetch_sub(volatile T *a, in atomic_fetch_sub() function
Dsanitizer_tls_get_addr.cc50 atomic_fetch_sub(&number_of_live_dtls, 1, memory_order_relaxed); in DTLS_Deallocate()
Dsanitizer_common.cc379 atomic_fetch_sub(&g_total_mmaped, size, memory_order_relaxed); in DecreaseTotalMmap()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc249 uptr prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release); in Unlock()
276 uptr prev = atomic_fetch_sub(&state_, kReadLock, memory_order_release); in ReadUnlock()
Dtsan_fd.cc65 if (atomic_fetch_sub(&s->rc, 1, memory_order_acq_rel) == 1) { in unref()
/external/clang/lib/Headers/
Dstdatomic.h149 #define atomic_fetch_sub(object, operand) __c11_atomic_fetch_sub(object, operand, __ATOMIC_SEQ_CST) macro
/external/libcxx/include/
Datomic380 atomic_fetch_sub(volatile atomic<Integral>* obj, Integral op) noexcept;
384 atomic_fetch_sub(atomic<Integral>* obj, Integral op) noexcept;
461 atomic_fetch_sub(volatile atomic<T*>* obj, ptrdiff_t op) noexcept;
465 atomic_fetch_sub(atomic<T*>* obj, ptrdiff_t op) noexcept;
1382 // atomic_fetch_sub
1391 atomic_fetch_sub(volatile atomic<_Tp>* __o, _Tp __op) _NOEXCEPT
1403 atomic_fetch_sub(atomic<_Tp>* __o, _Tp __op) _NOEXCEPT
1411 atomic_fetch_sub(volatile atomic<_Tp*>* __o, ptrdiff_t __op) _NOEXCEPT
1419 atomic_fetch_sub(atomic<_Tp*>* __o, ptrdiff_t __op) _NOEXCEPT
/external/jemalloc/include/jemalloc/internal/
Datomic.h140 return (atomic_fetch_sub(a, x) - x); in atomic_sub_uint64()
364 return (atomic_fetch_sub(a, x) - x); in atomic_sub_uint32()
/external/drm_hwcomposer/
Dplatformnv.cpp131 if (atomic_fetch_sub(&buf->ref, 1) > 1) in ReleaseBuffer()
/external/clang/test/Sema/
Datomic-ops.c237 k = atomic_fetch_sub(&n, k); in f()