Home
last modified time | relevance | path

Searched refs:old_value (Results 1 – 25 of 138) sorted by relevance

123456

/external/v8/src/base/
Datomicops_internals_portable.h53 inline Atomic8 Relaxed_CompareAndSwap(volatile Atomic8* ptr, Atomic8 old_value, in Relaxed_CompareAndSwap() argument
55 bool result = __atomic_compare_exchange_n(ptr, &old_value, new_value, false, in Relaxed_CompareAndSwap()
58 return old_value; in Relaxed_CompareAndSwap()
62 Atomic16 old_value, Atomic16 new_value) { in Relaxed_CompareAndSwap() argument
63 __atomic_compare_exchange_n(ptr, &old_value, new_value, false, in Relaxed_CompareAndSwap()
65 return old_value; in Relaxed_CompareAndSwap()
69 Atomic32 old_value, Atomic32 new_value) { in Relaxed_CompareAndSwap() argument
70 __atomic_compare_exchange_n(ptr, &old_value, new_value, false, in Relaxed_CompareAndSwap()
72 return old_value; in Relaxed_CompareAndSwap()
86 Atomic32 old_value, Atomic32 new_value) { in Acquire_CompareAndSwap() argument
[all …]
Datomicops_internals_std.h31 inline Atomic8 Relaxed_CompareAndSwap(volatile Atomic8* ptr, Atomic8 old_value, in Relaxed_CompareAndSwap() argument
34 helper::to_std_atomic(ptr), &old_value, new_value, in Relaxed_CompareAndSwap()
36 return old_value; in Relaxed_CompareAndSwap()
40 Atomic16 old_value, Atomic16 new_value) { in Relaxed_CompareAndSwap() argument
42 helper::to_std_atomic(ptr), &old_value, new_value, in Relaxed_CompareAndSwap()
44 return old_value; in Relaxed_CompareAndSwap()
48 Atomic32 old_value, Atomic32 new_value) { in Relaxed_CompareAndSwap() argument
50 helper::to_std_atomic(ptr), &old_value, new_value, in Relaxed_CompareAndSwap()
52 return old_value; in Relaxed_CompareAndSwap()
69 Atomic32 old_value, Atomic32 new_value) { in Acquire_CompareAndSwap() argument
[all …]
Datomicops.h89 Atomic8 Relaxed_CompareAndSwap(volatile Atomic8* ptr, Atomic8 old_value,
91 Atomic16 Relaxed_CompareAndSwap(volatile Atomic16* ptr, Atomic16 old_value,
93 Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr, Atomic32 old_value,
96 Atomic32 old_value, Atomic32 new_value);
97 Atomic32 Relaxed_CompareAndSwap(volatile Atomic32* ptr, Atomic32 old_value,
99 Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr, Atomic32 old_value,
102 Atomic64 Acquire_CompareAndSwap(volatile Atomic64* ptr, Atomic64 old_value,
105 Atomic64 old_value, Atomic64 new_value);
106 Atomic64 Relaxed_CompareAndSwap(volatile Atomic64* ptr, Atomic64 old_value,
108 Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr, Atomic64 old_value,
Datomicops_internals_atomicword_compat.h27 AtomicWord old_value, in Relaxed_CompareAndSwap() argument
30 old_value, new_value); in Relaxed_CompareAndSwap()
46 AtomicWord old_value, in Acquire_CompareAndSwap() argument
49 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Acquire_CompareAndSwap()
53 AtomicWord old_value, in Release_CompareAndSwap() argument
56 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Release_CompareAndSwap()
60 AtomicWord old_value, in AcquireRelease_CompareAndSwap() argument
63 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in AcquireRelease_CompareAndSwap()
Datomic-utils.h99 T* addr, typename std::remove_reference<T>::type old_value,
103 to_storage_addr(addr), cast_helper<T>::to_storage_type(old_value),
109 T* addr, typename std::remove_reference<T>::type old_value,
113 to_storage_addr(addr), cast_helper<T>::to_storage_type(old_value),
119 T* addr, typename std::remove_reference<T>::type old_value,
123 to_storage_addr(addr), cast_helper<T>::to_storage_type(old_value),
133 T old_value = Relaxed_Load(addr);
136 if ((old_value & mask) == bits) return false;
137 new_value = (old_value & ~mask) | bits;
138 old_value_before_cas = old_value;
[all …]
/external/libchrome/base/
Datomicops_internals_portable.h66 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
69 ->compare_exchange_strong(old_value, in NoBarrier_CompareAndSwap()
73 return old_value; in NoBarrier_CompareAndSwap()
95 Atomic32 old_value, in Acquire_CompareAndSwap() argument
98 ->compare_exchange_strong(old_value, in Acquire_CompareAndSwap()
102 return old_value; in Acquire_CompareAndSwap()
106 Atomic32 old_value, in Release_CompareAndSwap() argument
109 ->compare_exchange_strong(old_value, in Release_CompareAndSwap()
113 return old_value; in Release_CompareAndSwap()
149 Atomic64 old_value, in NoBarrier_CompareAndSwap() argument
[all …]
Datomicops_internals_x86_msvc.h30 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
35 static_cast<LONG>(old_value)); in NoBarrier_CompareAndSwap()
72 Atomic32 old_value, in Acquire_CompareAndSwap() argument
74 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
78 Atomic32 old_value, in Release_CompareAndSwap() argument
80 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
118 Atomic64 old_value, in NoBarrier_CompareAndSwap() argument
122 reinterpret_cast<PVOID>(new_value), reinterpret_cast<PVOID>(old_value)); in NoBarrier_CompareAndSwap()
181 Atomic64 old_value, in Acquire_CompareAndSwap() argument
183 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_atomicword_compat.h31 AtomicWord old_value, in NoBarrier_CompareAndSwap() argument
34 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in NoBarrier_CompareAndSwap()
56 AtomicWord old_value, in Acquire_CompareAndSwap() argument
59 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Acquire_CompareAndSwap()
63 AtomicWord old_value, in Release_CompareAndSwap() argument
66 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Release_CompareAndSwap()
Datomicops.h82 Atomic32 old_value,
106 Atomic32 old_value,
109 Atomic32 old_value,
124 Atomic64 old_value,
131 Atomic64 old_value,
134 Atomic64 old_value,
/external/webrtc/webrtc/base/
Datomicops.h40 static int CompareAndSwap(volatile int* i, int old_value, int new_value) { in CompareAndSwap() argument
43 old_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);
/external/compiler-rt/lib/BlocksRuntime/
Druntime.c105 unsigned long int old_value = *(volatile unsigned long int *)where;
106 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) {
109 if (OSAtomicCompareAndSwapLong(old_value, old_value+1, (volatile long int *)where)) {
110 return old_value+1;
118 int old_value = *(volatile int *)where; in latching_incr_int() local
119 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { in latching_incr_int()
122 if (OSAtomicCompareAndSwapInt(old_value, old_value+1, (volatile int *)where)) { in latching_incr_int()
123 return old_value+1; in latching_incr_int()
131 unsigned long int old_value = *(volatile int *)where;
132 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) {
[all …]
/external/honggfuzz/third_party/android/libBlocksRuntime/
Druntime.c105 unsigned long int old_value = *(volatile unsigned long int *)where;
106 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) {
109 if (OSAtomicCompareAndSwapLong(old_value, old_value+1, (volatile long int *)where)) {
110 return old_value+1;
118 int old_value = *(volatile int *)where; in latching_incr_int() local
119 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { in latching_incr_int()
122 if (OSAtomicCompareAndSwapInt(old_value, old_value+1, (volatile int *)where)) { in latching_incr_int()
123 return old_value+1; in latching_incr_int()
131 unsigned long int old_value = *(volatile int *)where;
132 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) {
[all …]
/external/libchrome/third_party/jinja2/
Dvisitor.py59 for field, old_value in node.iter_fields():
60 if isinstance(old_value, list):
62 for value in old_value:
71 old_value[:] = new_values
72 elif isinstance(old_value, Node):
73 new_node = self.visit(old_value, *args, **kwargs)
/external/python/cffi/cffi/
D_embedding.h276 char *old_value; in _cffi_carefully_make_gil() local
279 old_value = *lock; in _cffi_carefully_make_gil()
280 if (old_value[0] == 'E') { in _cffi_carefully_make_gil()
281 assert(old_value[1] == 'N'); in _cffi_carefully_make_gil()
282 if (cffi_compare_and_swap(lock, old_value, old_value + 1)) in _cffi_carefully_make_gil()
286 assert(old_value[0] == 'N'); in _cffi_carefully_make_gil()
309 while (!cffi_compare_and_swap(lock, old_value + 1, old_value)) in _cffi_carefully_make_gil()
/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2.py1777 def _replace_keep_prob_node(parent, old_value): argument
1783 right=old_value)
1785 pasta.ast_utils.replace_child(parent, old_value, new_value)
1786 ast.copy_location(new_value, old_value)
1789 pasta.base.formatting.set(old_value, "prefix", "(")
1790 pasta.base.formatting.set(old_value, "suffix", ")")
1858 def _wrap_label(parent, old_value): argument
1860 already_stop_grad = (isinstance(old_value, ast.Call) and
1861 isinstance(old_value.func, ast.Attribute) and
1862 old_value.func.attr == "stop_gradient" and
[all …]
/external/webrtc/webrtc/modules/audio_processing/transient/
Dmoving_moments.cc38 const float old_value = queue_.front(); in CalculateMoments() local
42 sum_ += in[i] - old_value; in CalculateMoments()
43 sum_of_squares_ += in[i] * in[i] - old_value * old_value; in CalculateMoments()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DAtomic.cpp47 sys::cas_flag old_value) { in CompareAndSwap() argument
50 if (result == old_value) in CompareAndSwap()
54 return __sync_val_compare_and_swap(ptr, old_value, new_value); in CompareAndSwap()
56 return InterlockedCompareExchange(ptr, new_value, old_value); in CompareAndSwap()
/external/llvm/lib/Support/
DAtomic.cpp45 sys::cas_flag old_value) { in CompareAndSwap() argument
48 if (result == old_value) in CompareAndSwap()
52 return __sync_val_compare_and_swap(ptr, old_value, new_value); in CompareAndSwap()
54 return InterlockedCompareExchange(ptr, new_value, old_value); in CompareAndSwap()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DAtomic.cpp47 sys::cas_flag old_value) { in CompareAndSwap() argument
50 if (result == old_value) in CompareAndSwap()
54 return __sync_val_compare_and_swap(ptr, old_value, new_value); in CompareAndSwap()
56 return InterlockedCompareExchange(ptr, new_value, old_value); in CompareAndSwap()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_patterns.td147 def : Pat<(TF_TransposeOp:$old_value
151 (UpdateShapeWithAxis<-1> $qtype, $old_value)))>;
152 def : Pat<(TF_ReshapeOp:$old_value
156 (UpdateShapeWithAxis<-1> $qtype, $old_value)))>;
160 def : Pat<(TF_TransposeOp:$old_value
164 (UpdateShapeWithAxis<0> $qtype, $old_value))),
165 [(UsedBy<"Conv2D"> $old_value)], (addBenefit 10)>;
168 def : Pat<(TF_ReshapeOp:$old_value
172 (UpdateShapeWithAxis<3> $qtype, $old_value))),
173 [(UsedBy<"DepthwiseConv2D"> $old_value)], (addBenefit 10)>;
/external/python/cpython2/Lib/
Dast.py291 for field, old_value in iter_fields(node):
292 old_value = getattr(node, field, None)
293 if isinstance(old_value, list):
295 for value in old_value:
304 old_value[:] = new_values
305 elif isinstance(old_value, AST):
306 new_node = self.visit(old_value)
/external/v8/src/objects/
Dmaybe-object-inl.h101 Address old_value = (*slot).ptr(); in Update() local
102 DCHECK(!HAS_SMI_TAG(old_value)); in Update()
107 bool weak_before = HAS_WEAK_HEAP_OBJECT_TAG(old_value); in Update()
111 HeapObjectReference(new_value | (old_value & kWeakHeapObjectMask))); in Update()
/external/ltp/testcases/commands/sysctl/
Dsysctl02.sh48 local old_value="$(cat $sys_file)"
54 if [ "$new_value" = "$old_value" ]; then
55 tst_res TPASS "$sys_file keeps old value ($old_value)"
/external/v8/include/cppgc/
Dcross-thread-persistent.h221 void* old_value = GetValue(); in Assign() local
222 if (IsValid(old_value)) { in Assign()
224 PersistentRegion& region = this->GetPersistentRegion(old_value); in Assign()
241 void* old_value = GetValue(); in AssignUnsafe() local
242 if (IsValid(old_value)) { in AssignUnsafe()
243 PersistentRegion& region = this->GetPersistentRegion(old_value); in AssignUnsafe()
/external/webrtc/webrtc/system_wrappers/include/
Dstatic_instance.h140 T* old_value = static_cast<T*>(InterlockedExchangePointer( in GetStaticInstance() local
142 if (old_value) { in GetStaticInstance()
143 delete static_cast<T*>(old_value); in GetStaticInstance()

123456