/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_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_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_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_mips_gcc.h | 54 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 68 : "r" (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 : "r" (old_value), "r" (new_value), "m" (*ptr) 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_pnacl.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_power.h | 40 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 53 [val] "b" (new_value), in NoBarrier_CompareAndSwap() 61 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 70 [val] "b" (new_value), in NoBarrier_AtomicExchange() 129 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 144 [val] "b" (new_value), in Acquire_CompareAndSwap() 153 Atomic32 new_value) { in Release_CompareAndSwap() argument 169 [val] "b" (new_value), in Release_CompareAndSwap() 241 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 255 [val] "b" (new_value), in NoBarrier_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_n(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_ppc_gcc.h | 47 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 59 : [ptr] "r"(ptr), [old_value] "r"(old_value), [new_value] "r"(new_value) in NoBarrier_CompareAndSwap() 66 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 75 : [ptr] "r"(ptr), [new_value] "r"(new_value) in NoBarrier_AtomicExchange() 107 Atomic32 old_value, Atomic32 new_value) { in Acquire_CompareAndSwap() argument 108 Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 114 Atomic32 old_value, Atomic32 new_value) { in Release_CompareAndSwap() argument 116 Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
|
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()
|
D | atomicops_internals_x86_msvc.h | 51 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 52 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 57 Atomic32 new_value) { in Release_CompareAndSwap() argument 58 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 134 Atomic64 new_value) { in Acquire_CompareAndSwap() argument 135 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 140 Atomic64 new_value) { in Release_CompareAndSwap() argument 141 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
|
/external/v8/src/base/ |
D | atomicops_internals_x86_msvc.h | 27 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 29 reinterpret_cast<volatile LONG*>(ptr), static_cast<LONG>(new_value), in NoBarrier_CompareAndSwap() 35 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 37 static_cast<LONG>(new_value)); in NoBarrier_AtomicExchange() 65 Atomic32 new_value) { in Acquire_CompareAndSwap() argument 66 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap() 71 Atomic32 new_value) { in Release_CompareAndSwap() argument 72 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap() 109 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 112 reinterpret_cast<PVOID>(new_value), reinterpret_cast<PVOID>(old_value)); in NoBarrier_CompareAndSwap() [all …]
|
D | atomicops_internals_portable.h | 54 Atomic32 new_value) { in NoBarrier_CompareAndSwap() argument 55 __atomic_compare_exchange_n(ptr, &old_value, new_value, false, in NoBarrier_CompareAndSwap() 61 Atomic32 new_value) { in NoBarrier_AtomicExchange() argument 62 return __atomic_exchange_n(ptr, new_value, __ATOMIC_RELAXED); in NoBarrier_AtomicExchange() 76 Atomic32 old_value, Atomic32 new_value) { in Acquire_CompareAndSwap() argument 77 __atomic_compare_exchange_n(ptr, &old_value, new_value, false, in Acquire_CompareAndSwap() 83 Atomic32 old_value, Atomic32 new_value) { in Release_CompareAndSwap() argument 84 __atomic_compare_exchange_n(ptr, &old_value, new_value, false, in Release_CompareAndSwap() 117 Atomic64 new_value) { in NoBarrier_CompareAndSwap() argument 118 __atomic_compare_exchange_n(ptr, &old_value, new_value, false, in NoBarrier_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()
|
D | atomicops.h | 79 Atomic32 new_value); 83 Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, Atomic32 new_value); 103 Atomic32 new_value); 106 Atomic32 new_value); 121 Atomic64 new_value); 122 Atomic64 NoBarrier_AtomicExchange(volatile Atomic64* ptr, Atomic64 new_value); 128 Atomic64 new_value); 131 Atomic64 new_value);
|
D | atomic-utils.h | 38 V8_INLINE void SetValue(T new_value) { in SetValue() argument 39 base::Release_Store(&value_, static_cast<base::AtomicWord>(new_value)); in SetValue() 70 V8_INLINE bool TrySetValue(T old_value, T new_value) { in TrySetValue() argument 73 cast_helper<T>::to_storage_type(new_value)) == in TrySetValue() 81 V8_INLINE void SetValue(T new_value) { in SetValue() argument 82 base::NoBarrier_Store(&value_, cast_helper<T>::to_storage_type(new_value)); in SetValue() 124 V8_INLINE bool TrySetValue(T old_value, T new_value) { 127 cast_helper<T>::to_storage_type(new_value)) == 134 T new_value; 137 new_value = (old_value & ~mask) | bits; [all …]
|
/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()
|
D | atomicops.h | 83 Atomic32 new_value); 87 Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr, Atomic32 new_value); 107 Atomic32 new_value); 110 Atomic32 new_value); 125 Atomic64 new_value); 126 Atomic64 NoBarrier_AtomicExchange(volatile Atomic64* ptr, Atomic64 new_value); 132 Atomic64 new_value); 135 Atomic64 new_value);
|
/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);
|