/external/v8/src/base/ |
D | atomicops_internals_ppc_gcc.h | 16 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 17 return (__sync_val_compare_and_swap(ptr, old_value, new_value)); in NoBarrier_CompareAndSwap() 21 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 25 } while (__sync_bool_compare_and_swap(ptr, old_value, new_value) == false); in NoBarrier_AtomicExchange() 38 Atomic32 new_value = old_value + increment; in Barrier_AtomicIncrement() local 39 if (__sync_bool_compare_and_swap(ptr, old_value, new_value)) { in Barrier_AtomicIncrement() 40 return new_value; in Barrier_AtomicIncrement() 48 Atomic32 old_value, Atomic32 new_value) { in Acquire_CompareAndSwap() argument 49 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 53 Atomic32 old_value, Atomic32 new_value) { in Release_CompareAndSwap() argument [all …]
|
D | atomicops_internals_arm_gcc.h | 71 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 89 : "r"(ptr), "r"(old_value), "r"(new_value) in NoBarrier_CompareAndSwap() 97 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 98 Atomic32 result = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 105 Atomic32 new_value) { in Release_CompareAndSwap() argument 107 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 143 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 152 : "r"(ptr), "r"(new_value) in NoBarrier_AtomicExchange() 177 Atomic32 new_value, in LinuxKernelCmpxchg() argument 180 return ((KernelCmpxchgFunc)0xffff0fc0)(old_value, new_value, ptr); in LinuxKernelCmpxchg() [all …]
|
D | atomicops_internals_x86_gcc.h | 32 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 36 : "q" (new_value), "m" (*ptr), "0" (old_value) in NoBarrier_CompareAndSwap() 42 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 44 : "=r" (new_value) in NoBarrier_AtomicExchange() 45 : "m" (*ptr), "0" (new_value) in NoBarrier_AtomicExchange() 47 return new_value; // Now it's the previous value. in NoBarrier_AtomicExchange() 75 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 76 Atomic32 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 85 Atomic32 new_value) { in Release_CompareAndSwap() argument 86 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() [all …]
|
D | atomicops_internals_arm64_gcc.h | 27 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 43 [new_value]"r" (new_value) in NoBarrier_CompareAndSwap() 51 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 63 : [new_value]"r" (new_value) in NoBarrier_AtomicExchange() 104 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 107 prev = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 115 Atomic32 new_value) { in Release_CompareAndSwap() argument 119 prev = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 177 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 193 [new_value]"r" (new_value) in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_portable.h | 17 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 18 return __sync_val_compare_and_swap(ptr, old_value, new_value); in NoBarrier_CompareAndSwap() 22 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 23 return __sync_lock_test_and_set(ptr, new_value); in NoBarrier_AtomicExchange() 37 Atomic32 old_value, Atomic32 new_value) { in Acquire_CompareAndSwap() argument 38 return __sync_val_compare_and_swap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 42 Atomic32 old_value, Atomic32 new_value) { in Release_CompareAndSwap() argument 43 return __sync_val_compare_and_swap(ptr, old_value, new_value); in Release_CompareAndSwap() 83 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 84 return __sync_val_compare_and_swap(ptr, old_value, new_value); in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_mips64_gcc.h | 48 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 62 : "r" (old_value), "r" (new_value), "m" (*ptr) in NoBarrier_CompareAndSwap() 70 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 82 : "r" (new_value), "m" (*ptr) in NoBarrier_AtomicExchange() 126 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 127 Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 134 Atomic32 new_value) { in Release_CompareAndSwap() argument 136 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 185 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 199 : "r" (old_value), "r" (new_value), "m" (*ptr) in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_mac.h | 31 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 34 if (OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_CompareAndSwap() 44 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 48 } while (!OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_AtomicExchange() 65 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 68 if (OSAtomicCompareAndSwap32Barrier(old_value, new_value, in Acquire_CompareAndSwap() 79 Atomic32 new_value) { in Release_CompareAndSwap() argument 80 return Acquire_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 126 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 129 if (OSAtomicCompareAndSwap64(old_value, new_value, in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_x86_msvc.h | 27 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 30 static_cast<LONG>(new_value), in NoBarrier_CompareAndSwap() 36 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 39 static_cast<LONG>(new_value)); in NoBarrier_AtomicExchange() 70 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 71 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 76 Atomic32 new_value) { in Release_CompareAndSwap() argument 77 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 124 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 127 reinterpret_cast<PVOID>(new_value), reinterpret_cast<PVOID>(old_value)); in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_tsan.h | 187 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 189 __tsan_atomic32_compare_exchange_strong(ptr, &cmp, new_value, in NoBarrier_CompareAndSwap() 195 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 196 return __tsan_atomic32_exchange(ptr, new_value, in NoBarrier_AtomicExchange() 201 Atomic32 new_value) { in Acquire_AtomicExchange() argument 202 return __tsan_atomic32_exchange(ptr, new_value, in Acquire_AtomicExchange() 207 Atomic32 new_value) { in Release_AtomicExchange() argument 208 return __tsan_atomic32_exchange(ptr, new_value, in Release_AtomicExchange() 226 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 228 __tsan_atomic32_compare_exchange_strong(ptr, &cmp, new_value, in Acquire_CompareAndSwap() [all …]
|
D | atomicops_internals_atomicword_compat.h | 28 AtomicWord new_value) { in NoBarrier_CompareAndSwap() argument 30 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in NoBarrier_CompareAndSwap() 34 AtomicWord new_value) { in NoBarrier_AtomicExchange() argument 36 reinterpret_cast<volatile Atomic32*>(ptr), new_value); in NoBarrier_AtomicExchange() 53 AtomicWord new_value) { in Acquire_CompareAndSwap() argument 55 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Acquire_CompareAndSwap() 60 AtomicWord new_value) { in Release_CompareAndSwap() argument 62 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Release_CompareAndSwap()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | atomicops_internals_tsan.h | 48 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 50 __tsan_atomic32_compare_exchange_strong(ptr, &cmp, new_value, in NoBarrier_CompareAndSwap() 56 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 57 return __tsan_atomic32_exchange(ptr, new_value, in NoBarrier_AtomicExchange() 62 Atomic32 new_value) { in Acquire_AtomicExchange() argument 63 return __tsan_atomic32_exchange(ptr, new_value, in Acquire_AtomicExchange() 68 Atomic32 new_value) { in Release_AtomicExchange() argument 69 return __tsan_atomic32_exchange(ptr, new_value, in Release_AtomicExchange() 87 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 89 __tsan_atomic32_compare_exchange_strong(ptr, &cmp, new_value, in Acquire_CompareAndSwap() [all …]
|
D | atomicops_internals_x86_gcc.h | 57 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 61 : "q" (new_value), "m" (*ptr), "0" (old_value) in NoBarrier_CompareAndSwap() 67 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 69 : "=r" (new_value) in NoBarrier_AtomicExchange() 70 : "m" (*ptr), "0" (new_value) in NoBarrier_AtomicExchange() 72 return new_value; // Now it's the previous value. in NoBarrier_AtomicExchange() 100 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 101 Atomic32 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 110 Atomic32 new_value) { in Release_CompareAndSwap() argument 111 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() [all …]
|
D | atomicops_internals_arm64_gcc.h | 54 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 70 [new_value]"r" (new_value) in NoBarrier_CompareAndSwap() 78 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 90 : [new_value]"r" (new_value) in NoBarrier_AtomicExchange() 129 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 130 Atomic32 prev = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 138 Atomic32 new_value) { in Release_CompareAndSwap() argument 140 Atomic32 prev = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 190 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 206 [new_value]"r" (new_value) in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_arm_qnx.h | 44 Atomic32 new_value, in QNXCmpxchg() argument 49 (unsigned)new_value)); in QNXCmpxchg() 55 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 58 if (!QNXCmpxchg(old_value, new_value, in NoBarrier_CompareAndSwap() 68 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 72 } while (QNXCmpxchg(old_value, new_value, in NoBarrier_AtomicExchange() 87 Atomic32 new_value = old_value + increment; in Barrier_AtomicIncrement() local 88 if (QNXCmpxchg(old_value, new_value, in Barrier_AtomicIncrement() 91 return new_value; in Barrier_AtomicIncrement() 99 Atomic32 new_value) { in Acquire_CompareAndSwap() argument [all …]
|
D | atomicops_internals_solaris.h | 43 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 44 return (Atomic32)atomic_cas_32((volatile uint32_t*)ptr, (uint32_t)old_value, (uint32_t)new_value); in NoBarrier_CompareAndSwap() 48 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 49 return (Atomic32)atomic_swap_32((volatile uint32_t*)ptr, (uint32_t)new_value); in NoBarrier_AtomicExchange() 73 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 74 Atomic32 ret = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 82 Atomic32 new_value) { in Release_CompareAndSwap() argument 84 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 119 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 120 return atomic_cas_64((volatile uint64_t*)ptr, (uint64_t)old_value, (uint64_t)new_value); in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_mips_gcc.h | 54 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 68 : "Ir" (old_value), "r" (new_value), "m" (*ptr) in NoBarrier_CompareAndSwap() 76 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 88 : "r" (new_value), "m" (*ptr) in NoBarrier_AtomicExchange() 132 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 134 Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 141 Atomic32 new_value) { in Release_CompareAndSwap() argument 143 Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 186 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 200 : "Ir" (old_value), "r" (new_value), "m" (*ptr) in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_macosx.h | 44 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 47 if (OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_CompareAndSwap() 57 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 61 } while (!OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_AtomicExchange() 82 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 85 if (OSAtomicCompareAndSwap32Barrier(old_value, new_value, in Acquire_CompareAndSwap() 96 Atomic32 new_value) { in Release_CompareAndSwap() argument 97 return Acquire_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 135 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 138 if (OSAtomicCompareAndSwap64(old_value, new_value, in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_arm_gcc.h | 48 Atomic32 new_value, 60 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 63 if (!pLinuxKernelCmpxchg(old_value, new_value, in NoBarrier_CompareAndSwap() 73 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 77 } while (pLinuxKernelCmpxchg(old_value, new_value, in NoBarrier_AtomicExchange() 92 Atomic32 new_value = old_value + increment; in Barrier_AtomicIncrement() local 93 if (pLinuxKernelCmpxchg(old_value, new_value, in Barrier_AtomicIncrement() 96 return new_value; in Barrier_AtomicIncrement() 104 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 105 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() [all …]
|
D | atomicops_internals_generic_gcc.h | 40 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 41 __atomic_compare_exchange_n(ptr, &old_value, new_value, true, in NoBarrier_CompareAndSwap() 47 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 48 return __atomic_exchange_n(ptr, new_value, __ATOMIC_RELAXED); in NoBarrier_AtomicExchange() 63 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 64 __atomic_compare_exchange(ptr, &old_value, &new_value, true, in Acquire_CompareAndSwap() 71 Atomic32 new_value) { in Release_CompareAndSwap() argument 72 __atomic_compare_exchange_n(ptr, &old_value, new_value, true, in Release_CompareAndSwap() 117 Atomic64 new_value) { in Acquire_CompareAndSwap() argument 118 __atomic_compare_exchange_n(ptr, &old_value, new_value, true, in Acquire_CompareAndSwap() [all …]
|
D | atomicops_internals_x86_msvc.cc | 54 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 57 static_cast<LONG>(new_value), in NoBarrier_CompareAndSwap() 63 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 66 static_cast<LONG>(new_value)); in NoBarrier_AtomicExchange() 83 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 86 reinterpret_cast<PVOID>(new_value), reinterpret_cast<PVOID>(old_value)); in NoBarrier_CompareAndSwap() 91 Atomic64 new_value) { in NoBarrier_AtomicExchange() argument 94 reinterpret_cast<PVOID>(new_value)); in NoBarrier_AtomicExchange()
|
D | atomicops_internals_atomicword_compat.h | 55 AtomicWord new_value) { in NoBarrier_CompareAndSwap() argument 57 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in NoBarrier_CompareAndSwap() 61 AtomicWord new_value) { in NoBarrier_AtomicExchange() argument 63 reinterpret_cast<volatile Atomic32*>(ptr), new_value); in NoBarrier_AtomicExchange() 80 AtomicWord new_value) { in Acquire_CompareAndSwap() argument 82 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Acquire_CompareAndSwap() 87 AtomicWord new_value) { in Release_CompareAndSwap() argument 89 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Release_CompareAndSwap()
|
/external/libchrome/base/ |
D | atomicops_internals_x86_msvc.h | 31 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 34 static_cast<LONG>(new_value), in NoBarrier_CompareAndSwap() 40 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 43 static_cast<LONG>(new_value)); in NoBarrier_AtomicExchange() 71 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 72 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 77 Atomic32 new_value) { in Release_CompareAndSwap() argument 78 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 117 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 120 reinterpret_cast<PVOID>(new_value), reinterpret_cast<PVOID>(old_value)); in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_portable.h | 67 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 70 new_value, in NoBarrier_CompareAndSwap() 77 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 79 ->exchange(new_value, std::memory_order_relaxed); in NoBarrier_AtomicExchange() 96 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 99 new_value, in Acquire_CompareAndSwap() 107 Atomic32 new_value) { in Release_CompareAndSwap() argument 110 new_value, in Release_CompareAndSwap() 150 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 153 new_value, in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_atomicword_compat.h | 32 AtomicWord new_value) { in NoBarrier_CompareAndSwap() argument 34 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in NoBarrier_CompareAndSwap() 38 AtomicWord new_value) { in NoBarrier_AtomicExchange() argument 40 reinterpret_cast<volatile Atomic32*>(ptr), new_value); in NoBarrier_AtomicExchange() 57 AtomicWord new_value) { in Acquire_CompareAndSwap() argument 59 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Acquire_CompareAndSwap() 64 AtomicWord new_value) { in Release_CompareAndSwap() argument 66 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Release_CompareAndSwap()
|
/external/webrtc/webrtc/base/ |
D | atomicops.h | 40 static int CompareAndSwap(volatile int* i, int old_value, int new_value) { in CompareAndSwap() argument 42 new_value, in CompareAndSwap() 51 static T* CompareAndSwapPtr(T* volatile* ptr, T* old_value, T* new_value) { in CompareAndSwapPtr() argument 53 reinterpret_cast<PVOID volatile*>(ptr), new_value, old_value)); in CompareAndSwapPtr() 68 static int CompareAndSwap(volatile int* i, int old_value, int new_value) { 69 return __sync_val_compare_and_swap(i, old_value, new_value); 77 static T* CompareAndSwapPtr(T* volatile* ptr, T* old_value, T* new_value) { 78 return __sync_val_compare_and_swap(ptr, old_value, new_value);
|