Home
last modified time | relevance | path

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

/external/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
Datomic_fetch_sub.pass.cpp44 assert(std::atomic_fetch_sub(&t, T(2)) == T(3)); in operator ()()
51 assert(std::atomic_fetch_sub(&t, T(2)) == T(3)); in operator ()()
65 assert(std::atomic_fetch_sub(&t, 2) == T(3*sizeof(X))); in testp()
73 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.h136 INLINE u32 atomic_fetch_sub(volatile atomic_uint32_t *a, in atomic_fetch_sub() function
144 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.cc294 atomic_fetch_sub(&g_total_mmaped, size, memory_order_relaxed); in DecreaseTotalMmap()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutex.cc250 uptr prev = atomic_fetch_sub(&state_, kWriteLock, memory_order_release); in Unlock()
277 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/libcxx/include/
Datomic387 atomic_fetch_sub(volatile atomic<Integral>* obj, Integral op) noexcept;
391 atomic_fetch_sub(atomic<Integral>* obj, Integral op) noexcept;
468 atomic_fetch_sub(volatile atomic<T*>* obj, ptrdiff_t op) noexcept;
472 atomic_fetch_sub(atomic<T*>* obj, ptrdiff_t op) noexcept;
1477 // atomic_fetch_sub
1486 atomic_fetch_sub(volatile atomic<_Tp>* __o, _Tp __op) _NOEXCEPT
1498 atomic_fetch_sub(atomic<_Tp>* __o, _Tp __op) _NOEXCEPT
1506 atomic_fetch_sub(volatile atomic<_Tp*>* __o, ptrdiff_t __op) _NOEXCEPT
1514 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/clang/lib/Headers/
Dstdatomic.h149 #define atomic_fetch_sub(object, operand) __c11_atomic_fetch_sub(object, operand, __ATOMIC_SEQ_CST) macro
Dopencl-c.h14783 int __ovld atomic_fetch_sub(volatile atomic_int *object, int operand);
14786 uint __ovld atomic_fetch_sub(volatile atomic_uint *object, uint operand);
14833 long __ovld atomic_fetch_sub(volatile atomic_long *object, long operand);
14836 ulong __ovld atomic_fetch_sub(volatile atomic_ulong *object, ulong operand);
14885 uintptr_t __ovld atomic_fetch_sub(volatile atomic_uintptr_t *object, ptrdiff_t operand);
/external/drm_hwcomposer/
Dplatformnv.cpp143 if (atomic_fetch_sub(&buf->ref, 1) > 1) in ReleaseBuffer()
/external/clang/test/Sema/
Datomic-ops.c246 k = atomic_fetch_sub(&n, k); in f()