Searched defs:atomic (Results 1 - 25 of 51) sorted by relevance

123

/external/libcxx/test/support/
H A Dcmpxchg_loop.h10 #include <atomic>
13 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired) { argument
15 if (atomic.compare_exchange_weak(expected, desired) == true) {
24 bool cmpxchg_weak_loop(A& atomic, T& expected, T desired, argument
28 if (atomic.compare_exchange_weak(expected, desired, success,
38 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired) { argument
40 if (std::atomic_compare_exchange_weak(atomic, expected, desired) == true) {
49 bool c_cmpxchg_weak_loop(A* atomic, T* expected, T desired, argument
53 if (std::atomic_compare_exchange_weak_explicit(atomic, expected, desired,
/external/v8/tools/clang/plugins/tests/
H A Dtrivial_ctor.h12 struct atomic { struct in namespace:std
16 typedef atomic<int> atomic_int;
/external/ltp/lib/newlib_tests/
H A Dtest09.c26 static int atomic; variable
34 tst_atomic_inc(&atomic);
52 if (atomic == THREADS * ITERATIONS)
H A Dtest15.c20 * limited check that atomic stores and loads order non-atomic memory
25 * atomic functions. X86 in particular has strong memory ordering by default
27 * (Raspberry Pi 3 Model B) has been observed to fail without the atomic
43 * from removing/reording atomic and seq_n, mark them as volatile.
54 static int atomic; variable
55 /* Instead of storing seq_n on the stack (probably next to the atomic variable
58 * seq_n will be synchronised between processors as a byproduct of the atomic
68 for (i = tst_atomic_load(&atomic);
70 i = tst_atomic_load(&atomic))
[all...]
/external/clang/test/CodeGen/
H A Datomic.c3 int atomic(void) { function
90 // CHECK: store atomic i32 0, {{.*}} release, align 4
93 // CHECK: store atomic i32 0, {{.*}} release, align 4
105 // CHECK: store atomic {{.*}} release, align 4
/external/libvpx/libvpx/vpx_util/
H A Dvpx_atomics.h22 // Look for built-in atomic support. We cannot use <stdatomic.h> or <atomic>
24 // to back the atomic type with the same type (g++ needs to be able to use
26 // stdatomic.h header. Even if both <stdatomic.h> and <atomic> existed it's not
43 // support for using <atomic> instead of stdatomic.h when building C++11 under
65 #endif // atomic builtin availability check
76 // Initialization of an atomic int, not thread safe.
77 static INLINE void vpx_atomic_init(vpx_atomic_int *atomic, int value) { argument
78 atomic->value = value;
81 static INLINE void vpx_atomic_store_release(vpx_atomic_int *atomic, in argument
90 vpx_atomic_load_acquire(const vpx_atomic_int *atomic) argument
[all...]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
H A DAtomicJavaBean.java18 import java.util.concurrent.atomic.AtomicLong;
22 private AtomicLong atomic; field in class:AtomicJavaBean
33 return atomic;
36 public void setAtomic(AtomicLong atomic) { argument
37 this.atomic = atomic;
/external/jemalloc/include/jemalloc/internal/
H A Dprng.h47 bool atomic);
49 size_t prng_lg_range_zu(size_t *state, unsigned lg_range, bool atomic);
51 uint32_t prng_range_u32(uint32_t *state, uint32_t range, bool atomic);
53 size_t prng_range_zu(size_t *state, size_t range, bool atomic);
85 prng_lg_range_u32(uint32_t *state, unsigned lg_range, bool atomic) argument
92 if (atomic) {
108 /* 64-bit atomic operations cannot be supported on all relevant platforms. */
125 prng_lg_range_zu(size_t *state, unsigned lg_range, bool atomic) argument
132 if (atomic) {
149 prng_range_u32(uint32_t *state, uint32_t range, bool atomic) argument
187 prng_range_zu(size_t *state, size_t range, bool atomic) argument
[all...]
/external/libdrm/
H A Dxf86atomic.h31 * Private definitions for atomic operations
46 int atomic; member in struct:__anon11346
49 # define atomic_read(x) ((x)->atomic)
50 # define atomic_set(x, val) ((x)->atomic = (val))
51 # define atomic_inc(x) ((void) __sync_fetch_and_add (&(x)->atomic, 1))
52 # define atomic_inc_return(x) (__sync_add_and_fetch (&(x)->atomic, 1))
53 # define atomic_dec_and_test(x) (__sync_add_and_fetch (&(x)->atomic, -1) == 0)
54 # define atomic_add(x, v) ((void) __sync_add_and_fetch(&(x)->atomic, (v)))
55 # define atomic_dec(x, v) ((void) __sync_sub_and_fetch(&(x)->atomic, (v)))
56 # define atomic_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (&(x)->atomic, old
66 AO_t atomic; member in struct:__anon11347
91 typedef struct { LIBDRM_ATOMIC_TYPE atomic; } atomic_t; member in struct:__anon11348
[all...]
/external/compiler-rt/test/tsan/
H A Ddebugging.cc20 void **addr, int *size, int *write, int *atomic,
71 int size, write, atomic; local
74 __tsan_get_report_mop(report, 0, &tid, &addr, &size, &write, &atomic, trace,
76 fprintf(stderr, "tid = %d, addr = %p, size = %d, write = %d, atomic = %d\n",
77 tid, addr, size, write, atomic);
78 // CHECK: tid = 1, addr = [[GLOBAL]], size = 8, write = 1, atomic = 0
82 __tsan_get_report_mop(report, 1, &tid, &addr, &size, &write, &atomic, trace,
84 fprintf(stderr, "tid = %d, addr = %p, size = %d, write = %d, atomic = %d\n",
85 tid, addr, size, write, atomic);
86 // CHECK: tid = 0, addr = [[GLOBAL]], size = 8, write = 1, atomic
[all...]
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/atomic/
H A DAtomicInteger.java17 package java.util.concurrent.atomic;
H A DAtomicLong.java17 package java.util.concurrent.atomic;
/external/jemalloc/test/unit/
H A Dprng.c4 test_prng_lg_range_u32(bool atomic) argument
10 ra = prng_lg_range_u32(&sa, 32, atomic);
12 rb = prng_lg_range_u32(&sa, 32, atomic);
17 rb = prng_lg_range_u32(&sb, 32, atomic);
22 ra = prng_lg_range_u32(&sa, 32, atomic);
23 rb = prng_lg_range_u32(&sa, 32, atomic);
28 ra = prng_lg_range_u32(&sa, 32, atomic);
31 rb = prng_lg_range_u32(&sb, lg_range, atomic);
78 test_prng_lg_range_zu(bool atomic) argument
84 ra = prng_lg_range_zu(&sa, ZU(1) << (3 + LG_SIZEOF_PTR), atomic);
151 test_prng_range_u32(bool atomic) argument
193 test_prng_range_zu(bool atomic) argument
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_atomicbuf.c54 struct gl_active_atomic_buffer *atomic = &prog->data->AtomicBuffers[i]; local
56 &st->ctx->AtomicBufferBindings[atomic->Binding];
68 atomic->Binding, 1, &sb);
/external/clang/test/SemaCXX/
H A Datomic-type.cpp4 template<typename T> struct atomic { struct
12 atomic<inner> i;
H A DMicrosoftCompatibility.cpp19 struct atomic : _Atomic<T> { struct in inherits:_Atomic
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_debugging.cc94 int *size, int *write, int *atomic, void **trace,
103 *atomic = mop->atomic ? 1 : 0;
93 __tsan_get_report_mop(void *report, uptr idx, int *tid, void **addr, int *size, int *write, int *atomic, void **trace, uptr trace_size) argument
H A Dtsan_report.h58 bool atomic; member in struct:__tsan::ReportMop
H A Dtsan_report.cc148 static const char *MopDesc(bool first, bool write, bool atomic) { argument
149 return atomic ? (first ? (write ? "Atomic write" : "Atomic read")
150 : (write ? "Previous atomic write" : "Previous atomic read"))
160 MopDesc(first, mop->write, mop->atomic),
/external/eigen/unsupported/Eigen/src/MatrixFunctions/
H A DMatrixLogarithm.h262 * \brief Helper class for computing matrix logarithm of atomic matrices.
264 * Here, an atomic matrix is a triangular matrix whose diagonal entries are close to each other.
272 /** \brief Compute matrix logarithm of atomic matrix
273 * \param[in] A argument of matrix logarithm, should be upper triangular and atomic
340 AtomicType atomic; local
342 internal::matrix_function_compute<typename DerivedEvalTypeClean::PlainObject>::run(m_A, atomic, result);
H A DMatrixFunction.h25 * \brief Helper class for computing matrix functions of atomic matrices.
27 * Here, an atomic matrix is a triangular matrix whose diagonal entries are close to each other.
42 /** \brief Compute matrix function of atomic matrix
43 * \param[in] A argument of matrix function, should be upper triangular and atomic
244 * each diagonal block is computed by \p atomic. The off-diagonal parts of \p fT are set to zero.
247 void matrix_function_compute_block_atomic(const MatrixType& T, AtomicType& atomic, const VectorType& blockStart, const VectorType& clusterSize, MatrixType& fT) argument
252 = atomic.compute(T.block(blockStart(i), blockStart(i), clusterSize(i), clusterSize(i)));
364 * \tparam AtomicType type for computing matrix function of atomic blocks.
381 * \param[in] atomic class for computing matrix function of atomic block
402 run(const MatA& A, AtomicType& atomic, ResultType &result) argument
426 run(const MatA& A, AtomicType& atomic, ResultType &result) argument
[all...]
/external/icu/icu4c/source/i18n/
H A Dregexcmp.h78 atomic = -3, enumerator in enum:RegexCompile::EParenClass
/external/mesa3d/src/compiler/nir/
H A Dnir_lower_io.c291 unreachable("Invalid atomic");
294 nir_intrinsic_instr *atomic = local
297 nir_intrinsic_set_base(atomic, var->data.driver_location);
299 atomic->src[0] = nir_src_for_ssa(offset);
301 nir_src_copy(&atomic->src[i+1], &intrin->src[i], atomic);
304 return atomic;
/external/kernel-headers/original/uapi/rdma/
H A Drdma_user_rxe.h85 } atomic; member in union:rxe_send_wr::__anon10208
/external/v8/src/libsampler/
H A Dsampler.cc48 #include "src/base/atomic-utils.h"
168 explicit AtomicGuard(AtomicMutex* atomic, bool is_blocking = true) argument
169 : atomic_(atomic), is_success_(false) {

Completed in 786 milliseconds

123