Home
last modified time | relevance | path

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

12345678

/external/rust/crates/rayon-core/src/sleep/
Dcounters.rs106 fn try_exchange(&self, old_value: Counters, new_value: Counters, ordering: Ordering) -> bool { in try_exchange()
108 .compare_exchange(old_value.word, new_value.word, ordering, Ordering::Relaxed) in try_exchange()
133 let old_value = self.load(Ordering::SeqCst); in increment_jobs_event_counter_if() localVariable
134 if increment_when(old_value.jobs_counter()) { in increment_jobs_event_counter_if()
135 let new_value = old_value.increment_jobs_counter(); in increment_jobs_event_counter_if()
136 if self.try_exchange(old_value, new_value, Ordering::SeqCst) { in increment_jobs_event_counter_if()
140 return old_value; in increment_jobs_event_counter_if()
152 let old_value = Counters::new(self.value.fetch_sub(ONE_INACTIVE, Ordering::SeqCst)); in sub_inactive_thread() localVariable
154 old_value.inactive_threads() > 0, in sub_inactive_thread()
156 old_value, in sub_inactive_thread()
[all …]
/external/cronet/base/
Datomicops_internals_portable.h51 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
54 ->compare_exchange_strong(old_value, in NoBarrier_CompareAndSwap()
58 return old_value; in NoBarrier_CompareAndSwap()
80 Atomic32 old_value, in Acquire_CompareAndSwap() argument
83 ->compare_exchange_strong(old_value, in Acquire_CompareAndSwap()
87 return old_value; in Acquire_CompareAndSwap()
91 Atomic32 old_value, in Release_CompareAndSwap() argument
94 ->compare_exchange_strong(old_value, in Release_CompareAndSwap()
98 return old_value; in Release_CompareAndSwap()
124 Atomic64 old_value, in NoBarrier_CompareAndSwap() argument
[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.h87 Atomic32 old_value,
110 Atomic32 old_value,
113 Atomic32 old_value,
125 Atomic64 old_value,
132 Atomic64 old_value,
135 Atomic64 old_value,
/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/webp/examples/
Dstopwatch.h29 const LARGE_INTEGER old_value = *watch; in StopwatchReadAndReset() local
37 return (watch->QuadPart - old_value.QuadPart) / (double)freq.QuadPart; in StopwatchReadAndReset()
52 struct timeval old_value; in StopwatchReadAndReset() local
54 memcpy(&old_value, watch, sizeof(old_value)); in StopwatchReadAndReset()
56 delta_sec = (double)watch->tv_sec - old_value.tv_sec; in StopwatchReadAndReset()
57 delta_usec = (double)watch->tv_usec - old_value.tv_usec; in StopwatchReadAndReset()
/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/python/cffi/cffi/
D_embedding.h290 char *old_value, *locked_value; in _cffi_carefully_make_gil() local
293 old_value = *lock; in _cffi_carefully_make_gil()
294 locked_value = old_value + 1; in _cffi_carefully_make_gil()
295 if (old_value[0] == 'E') { in _cffi_carefully_make_gil()
296 assert(old_value[1] == 'N'); in _cffi_carefully_make_gil()
297 if (cffi_compare_and_swap(lock, old_value, locked_value)) in _cffi_carefully_make_gil()
301 assert(old_value[0] == 'N'); in _cffi_carefully_make_gil()
310 int old_value, locked_value; in _cffi_carefully_make_gil()
314 old_value = *lock; in _cffi_carefully_make_gil()
316 if (old_value == 0) { in _cffi_carefully_make_gil()
[all …]
/external/python/jinja/src/jinja2/
Dvisitor.py51 for field, old_value in node.iter_fields():
52 if isinstance(old_value, list):
54 for value in old_value:
63 old_value[:] = new_values
64 elif isinstance(old_value, Node):
65 new_node = self.visit(old_value, *args, **kwargs)
/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/cronet/buildtools/third_party/libc++/trunk/test/std/algorithms/alg.modifying.operations/alg.replace/
Dranges_replace_copy.pass.cpp97 int old_value; member
112 …std::ranges::replace_copy(std::move(first), std::move(last), std::move(result), d.old_value, d.new… in test()
125 std::ranges::replace_copy(range, result, d.old_value, d.new_value); in test()
135 …test<InIter, Sent, OutIter, 4>({.input = {1, 2, 3, 4}, .old_value = 2, .new_value = 5, .expected =… in tests()
137 test<InIter, Sent, OutIter, 0>({.input = {}, .old_value = 2, .new_value = 5, .expected = {}}); in tests()
139 …test<InIter, Sent, OutIter, 4>({.input = {1, 1, 1, 1}, .old_value = 1, .new_value = 2, .expected =… in tests()
141 …test<InIter, Sent, OutIter, 4>({.input = {1, 1, 1, 1}, .old_value = 2, .new_value = 3, .expected =… in tests()
143 …test<InIter, Sent, OutIter, 4>({.input = {1, 1, 1, 1}, .old_value = 1, .new_value = 1, .expected =… in tests()
145 …test<InIter, Sent, OutIter, 4>({.input = {1, 1, 1, 1}, .old_value = 2, .new_value = 2, .expected =… in tests()
148 …{.input = {1, 2, 3, 4, 5, 6, 7}, .old_value = 2, .new_value = 3, .expected = {1, 3, 3, 4, 5, 6, 7}… in tests()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_patterns.td117 Pat<(TF_TransposeOp:$old_value
121 (UpdateShapeWithAxis<-1> $qtype, $old_value))),
122 [(CanUpdateShapeWithAxis<-1> $qtype, $old_value)]>;
124 def ReorderReshapeDequantQuant : Pat<(TF_ReshapeOp:$old_value
128 (UpdateShapeWithAxis<-1> $qtype, $old_value))),
129 [(CanUpdateShapeWithAxis<-1> $qtype, $old_value)]>;
134 Pat<(TF_TransposeOp:$old_value
138 (UpdateShapeWithAxis<0> $qtype, $old_value))),
139 [(UsedBy<"Conv2D"> $old_value),
140 (CanUpdateShapeWithAxis<0> $qtype, $old_value)],
[all …]
/external/tensorflow/tensorflow/tools/compatibility/
Dtf_upgrade_v2.py1810 def _replace_keep_prob_node(parent, old_value): argument
1816 right=old_value)
1818 pasta.ast_utils.replace_child(parent, old_value, new_value)
1819 ast.copy_location(new_value, old_value)
1822 pasta.base.formatting.set(old_value, "prefix", "(")
1823 pasta.base.formatting.set(old_value, "suffix", ")")
1894 def _wrap_label(parent, old_value): argument
1896 already_stop_grad = (isinstance(old_value, ast.Call) and
1897 isinstance(old_value.func, ast.Attribute) and
1898 old_value.func.attr == "stop_gradient" and
[all …]
/external/libbpf/src/
Dhashmap.c156 const void **old_key, void **old_value) in hashmap__insert() argument
164 if (old_value) in hashmap__insert()
165 *old_value = NULL; in hashmap__insert()
172 if (old_value) in hashmap__insert()
173 *old_value = entry->value; in hashmap__insert()
221 const void **old_key, void **old_value) in hashmap__delete() argument
232 if (old_value) in hashmap__delete()
233 *old_value = entry->value; in hashmap__delete()
Dhashmap.h114 const void **old_key, void **old_value);
124 const void **old_key, void **old_value) in hashmap__set() argument
127 old_key, old_value); in hashmap__set()
132 const void **old_key, void **old_value) in hashmap__update() argument
135 old_key, old_value); in hashmap__update()
145 const void **old_key, void **old_value);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DAtomic.cpp46 sys::cas_flag old_value) { in CompareAndSwap() argument
49 if (result == old_value) in CompareAndSwap()
53 return __sync_val_compare_and_swap(ptr, old_value, new_value); in CompareAndSwap()
55 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-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/webrtc/modules/audio_processing/transient/
Dmoving_moments.cc39 const float old_value = queue_.front(); in CalculateMoments() local
43 sum_ += in[i] - old_value; in CalculateMoments()
44 sum_of_squares_ += in[i] * in[i] - old_value * old_value; in CalculateMoments()
/external/cronet/base/metrics/
Dhistogram_samples.cc101 AtomicSingleSample old_value; in Extract() local
108 old_value.as_atomic = subtle::Acquire_Load(&as_atomic); in Extract()
112 if (old_value.as_atomic == kDisabledSingleSample) { in Extract()
113 old_value.as_atomic = 0; in Extract()
114 return old_value.as_parts; in Extract()
122 &as_atomic, old_value.as_atomic, new_value.as_atomic); in Extract()
123 if (existing == old_value.as_atomic) { in Extract()
124 return old_value.as_parts; in Extract()
131 AtomicSingleSample old_value( in ExtractAndDisable() local
134 if (old_value.as_atomic == kDisabledSingleSample) { in ExtractAndDisable()
[all …]
/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/leveldb/issues/
Dissue320_test.cc62 std::string value, old_value; in TEST() local
81 db->Get(readOptions, test_map[index]->first, &old_value)); in TEST()
82 if (old_value != test_map[index]->second) { in TEST()
85 std::cout << " old value=" << old_value << std::endl; in TEST()
91 ASSERT_EQ(old_value, test_map[index]->second); in TEST()

12345678