Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
H A Datomic_fetch_sub.pass.cpp32 assert(std::atomic_fetch_sub(&t, T(2)) == T(3)); in operator ()()
34 ASSERT_NOEXCEPT(std::atomic_fetch_sub(&t, 0)); in operator ()()
39 assert(std::atomic_fetch_sub(&t, T(2)) == T(3)); in operator ()()
41 ASSERT_NOEXCEPT(std::atomic_fetch_sub(&t, 0)); in operator ()()
54 assert(std::atomic_fetch_sub(&t, 2) == &a[2]); in testp()
55 std::atomic_fetch_sub<T>(&t, 0); in testp()
57 ASSERT_NOEXCEPT(std::atomic_fetch_sub(&t, 0)); in testp()
64 assert(std::atomic_fetch_sub(&t, 2) == &a[2]); in testp()
65 std::atomic_fetch_sub<T>(&t, 0); in testp()
67 ASSERT_NOEXCEPT(std::atomic_fetch_sub(&t, 0)); in testp()
/llvm-project-15.0.7/libcxx/test/libcxx/atomics/atomics.types.operations/atomics.types.operations.req/
H A Datomic_fetch_sub.verify.cpp22 std::atomic_fetch_sub(&obj, 0); in void_pointer()
27 std::atomic_fetch_sub(&obj, 0); in void_pointer()
37 std::atomic_fetch_sub(&obj, 0); in pointer_to_incomplete_type()
42 std::atomic_fetch_sub(&obj, 0); in pointer_to_incomplete_type()
50 std::atomic_fetch_sub(&fun, 0); in function_pointer()
55 std::atomic_fetch_sub(&fun, 0); in function_pointer()
67 std::atomic_fetch_sub(&fun, 0); in member_function_pointer()
72 std::atomic_fetch_sub(&fun, 0); in member_function_pointer()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_atomic_msvc.h126 inline u32 atomic_fetch_sub(volatile atomic_uint32_t *a, in atomic_fetch_sub() function
134 inline uptr atomic_fetch_sub(volatile atomic_uintptr_t *a, in atomic_fetch_sub() function
H A Dsanitizer_atomic_clang.h54 inline typename T::Type atomic_fetch_sub(volatile T *a, in atomic_fetch_sub() function
H A Dsanitizer_atomic_clang_mips.h58 inline atomic_uint64_t::Type atomic_fetch_sub(volatile atomic_uint64_t *ptr, in atomic_fetch_sub() function
H A Dsanitizer_tls_get_addr.cpp49 atomic_fetch_sub(&number_of_live_dtls, 1, memory_order_relaxed); in DTLS_Deallocate()
H A Dsanitizer_common.cpp205 atomic_fetch_sub(&g_total_mmaped, size, memory_order_relaxed); in DecreaseTotalMmap()
H A Dsanitizer_stack_store.cpp101 atomic_fetch_sub(&allocated_, size, memory_order_relaxed); in Unmap()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dlinux.cpp123 if (atomic_fetch_sub(&M, 1U, memory_order_release) != Locked) { in unlock()
H A Datomic_helpers.h86 inline typename T::Type atomic_fetch_sub(volatile T *A, typename T::Type V, in atomic_fetch_sub() function
/llvm-project-15.0.7/libcxx/include/
H A Dstdatomic.h208 using std::atomic_fetch_sub _LIBCPP_USING_IF_EXISTS;
H A Datomic339 T atomic_fetch_sub(volatile atomic<T>*, atomic<T>::difference_type) noexcept;
341 T atomic_fetch_sub(atomic<T>*, atomic<T>::difference_type) noexcept;
2170 // atomic_fetch_sub
2174 _Tp atomic_fetch_sub(volatile atomic<_Tp>* __o, typename atomic<_Tp>::difference_type __op) _NOEXCE…
2181 _Tp atomic_fetch_sub(atomic<_Tp>* __o, typename atomic<_Tp>::difference_type __op) _NOEXCEPT
/llvm-project-15.0.7/clang/lib/Headers/
H A Dstdatomic.h145 #define atomic_fetch_sub(object, operand) __c11_atomic_fetch_sub(object, operand, __ATOMIC_SEQ_CST) macro
H A Dopencl-c.h13291 int __ovld atomic_fetch_sub(volatile atomic_int *, int);
13292 uint __ovld atomic_fetch_sub(volatile atomic_uint *, uint);
13306 long __ovld atomic_fetch_sub(volatile atomic_long *, long);
13307 ulong __ovld atomic_fetch_sub(volatile atomic_ulong *, ulong);
13327 int __ovld atomic_fetch_sub(volatile __global atomic_int *, int);
13328 int __ovld atomic_fetch_sub(volatile __local atomic_int *, int);
13330 uint __ovld atomic_fetch_sub(volatile __local atomic_uint *, uint);
13359 long __ovld atomic_fetch_sub(volatile __local atomic_long *, long);
13856 half __ovld atomic_fetch_sub(volatile atomic_half *, half);
13897 float __ovld atomic_fetch_sub(volatile atomic_float *, float);
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dpr37025.ll13 ; if (atomic_fetch_sub(obj, 1) == 1 && obj2)
/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_buffer_queue.cpp46 if (atomic_fetch_sub(&C->RefCount, 1, memory_order_acq_rel) == 1) in decRefCount()
H A Dxray_fdr_log_writer.h224 atomic_fetch_sub(Buffer.Extents, B, memory_order_acq_rel);
/llvm-project-15.0.7/libcxx/test/std/atomics/stdatomic.h.syn/
H A Dtypes.compile.pass.cpp223 using ::atomic_fetch_sub; in f()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_fd.cpp64 if (atomic_fetch_sub(&s->rc, 1, memory_order_acq_rel) == 1) { in unref()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cpp70 if (atomic_fetch_sub(&s->rc, 1, memory_order_acq_rel) == 1) { in unref()
/llvm-project-15.0.7/clang/test/Sema/
H A Datomic-ops.c291 k = atomic_fetch_sub(&n, k); in f()
/llvm-project-15.0.7/clang/include/clang/Tooling/Inclusions/
H A DCSymbolMap.inc261 SYMBOL(atomic_fetch_sub, None, <stdatomic.h>)
H A DStdSymbolMap.inc112 SYMBOL(atomic_fetch_sub, std::, <atomic>)