Home
last modified time | relevance | path

Searched refs:old_val (Results 1 – 25 of 69) sorted by relevance

123

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_atomic_test.cc98 Type old_val = 42; in CheckAtomicCompareExchange() local
100 Type var = old_val; in CheckAtomicCompareExchange()
101 EXPECT_TRUE(atomic_compare_exchange_strong((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
103 EXPECT_FALSE(atomic_compare_exchange_strong((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
105 EXPECT_EQ(new_val, old_val); in CheckAtomicCompareExchange()
108 Type old_val = 42; in CheckAtomicCompareExchange() local
110 Type var = old_val; in CheckAtomicCompareExchange()
111 EXPECT_TRUE(atomic_compare_exchange_weak((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
113 EXPECT_FALSE(atomic_compare_exchange_weak((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
115 EXPECT_EQ(new_val, old_val); in CheckAtomicCompareExchange()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_atomic_test.cpp113 Type old_val = 42; in CheckAtomicCompareExchange() local
115 Type var = old_val; in CheckAtomicCompareExchange()
116 EXPECT_TRUE(atomic_compare_exchange_strong((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
118 EXPECT_FALSE(atomic_compare_exchange_strong((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
120 EXPECT_EQ(new_val, old_val); in CheckAtomicCompareExchange()
123 Type old_val = 42; in CheckAtomicCompareExchange() local
125 Type var = old_val; in CheckAtomicCompareExchange()
126 EXPECT_TRUE(atomic_compare_exchange_weak((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
128 EXPECT_FALSE(atomic_compare_exchange_weak((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
130 EXPECT_EQ(new_val, old_val); in CheckAtomicCompareExchange()
/external/tensorflow/tensorflow/python/ops/
Dcontrol_flow_ops_benchmark.py98 old_val = control_flow_util.ENABLE_CONTROL_FLOW_V2
101 control_flow_util.ENABLE_CONTROL_FLOW_V2 = old_val
104 old_val = control_flow_util.ENABLE_CONTROL_FLOW_V2
107 control_flow_util.ENABLE_CONTROL_FLOW_V2 = old_val
110 old_val = control_flow_util.ENABLE_CONTROL_FLOW_V2
113 control_flow_util.ENABLE_CONTROL_FLOW_V2 = old_val
116 old_val = control_flow_util.ENABLE_CONTROL_FLOW_V2
119 control_flow_util.ENABLE_CONTROL_FLOW_V2 = old_val
/external/linux-kselftest/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi_signal_restart.c94 unsigned int old_val; in waiterfn() local
101 old_val = f1; in waiterfn()
102 res = futex_wait_requeue_pi(&f1, old_val, &(f2), NULL, in waiterfn()
120 unsigned int old_val; in main() local
181 old_val = f1; in main()
182 res = futex_cmp_requeue_pi(&f1, old_val, &(f2), 1, 0, in main()
Dfutex_requeue_pi.c111 futex_t old_val; in waiterfn() local
119 old_val = f1; in waiterfn()
123 args->ret = futex_wait_requeue_pi(&f1, old_val, &f2, args->timeout, in waiterfn()
149 futex_t old_val; in broadcast_wakerfn() local
164 old_val = f1; in broadcast_wakerfn()
165 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, nr_wake, nr_requeue, in broadcast_wakerfn()
195 unsigned int old_val; in signal_wakerfn() local
216 old_val = f1; in signal_wakerfn()
217 args->ret = futex_cmp_requeue_pi(&f1, old_val, &f2, in signal_wakerfn()
/external/llvm-project/llvm/utils/benchmark/tools/gbench/
Dreport.py60 def calculate_change(old_val, new_val): argument
64 if old_val == 0 and new_val == 0:
66 if old_val == 0:
67 return float(new_val - old_val) / (float(old_val + new_val) / 2)
68 return float(new_val - old_val) / abs(old_val)
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/sched/sched_reset_all_window_stats/
Dformat13 field:unsigned int old_val; offset:36; size:4; signed:0;
16 … reason %s old_val %u new_val %u", REC->time_taken, REC->window_start, REC->window_size, sched_win…
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dflow_control.cc51 static char* fmt_int64_diff_str(int64_t old_val, int64_t new_val) { in fmt_int64_diff_str() argument
53 if (old_val != new_val) { in fmt_int64_diff_str()
54 str = absl::StrFormat("%" PRId64 " -> %" PRId64 "", old_val, new_val); in fmt_int64_diff_str()
56 str = absl::StrFormat("%" PRId64 "", old_val); in fmt_int64_diff_str()
61 static char* fmt_uint32_diff_str(uint32_t old_val, uint32_t new_val) { in fmt_uint32_diff_str() argument
63 if (old_val != new_val) { in fmt_uint32_diff_str()
64 str = absl::StrFormat("%" PRIu32 " -> %" PRIu32 "", old_val, new_val); in fmt_uint32_diff_str()
66 str = absl::StrFormat("%" PRIu32 "", old_val); in fmt_uint32_diff_str()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dflow_control.cc45 static char* fmt_int64_diff_str(int64_t old_val, int64_t new_val) { in fmt_int64_diff_str() argument
47 if (old_val != new_val) { in fmt_int64_diff_str()
48 gpr_asprintf(&str, "%" PRId64 " -> %" PRId64 "", old_val, new_val); in fmt_int64_diff_str()
50 gpr_asprintf(&str, "%" PRId64 "", old_val); in fmt_int64_diff_str()
57 static char* fmt_uint32_diff_str(uint32_t old_val, uint32_t new_val) { in fmt_uint32_diff_str() argument
59 if (old_val != new_val) { in fmt_uint32_diff_str()
60 gpr_asprintf(&str, "%" PRIu32 " -> %" PRIu32 "", old_val, new_val); in fmt_uint32_diff_str()
62 gpr_asprintf(&str, "%" PRIu32 "", old_val); in fmt_uint32_diff_str()
/external/zstd/contrib/diagnose_corruption/
Dcheck_flipped_bits.c335 unsigned char old_val = stuff->input[pos]; in perturb_bits() local
340 unsigned char new_val = old_val ^ (1 << bit); in perturb_bits()
347 pos, bit, old_val, new_val); in perturb_bits()
350 stuff->perturbed[pos] = old_val; in perturb_bits()
359 unsigned char old_val = stuff->input[pos]; in perturb_bytes() local
370 pos, old_val, (unsigned char)new_val); in perturb_bytes()
373 stuff->perturbed[pos] = old_val; in perturb_bytes()
/external/arm-trusted-firmware/plat/common/
Dubsan.c83 unsigned long old_val);
85 unsigned long old_val);
150 unsigned long old_val __unused) in __ubsan_handle_negate_overflow_abort()
157 unsigned long old_val __unused) in __ubsan_handle_pointer_overflow_abort()
/external/skqp/src/core/
DSkExchange.h18 T old_val = std::move(obj); in exchange() local
20 return old_val; in exchange()
/external/webrtc/modules/audio_processing/vad/
Dpitch_internal.cc24 static void PitchInterpolation(double old_val, const double* in, double* out) { in PitchInterpolation() argument
25 out[0] = 1. / 6. * old_val + 5. / 6. * in[0]; in PitchInterpolation()
/external/llvm-project/libcxx/utils/google-benchmark/tools/gbench/
Dreport.py71 def calculate_change(old_val, new_val): argument
75 if old_val == 0 and new_val == 0:
77 if old_val == 0:
78 return float(new_val - old_val) / (float(old_val + new_val) / 2)
79 return float(new_val - old_val) / abs(old_val)
/external/libcxx/utils/google-benchmark/tools/gbench/
Dreport.py71 def calculate_change(old_val, new_val): argument
75 if old_val == 0 and new_val == 0:
77 if old_val == 0:
78 return float(new_val - old_val) / (float(old_val + new_val) / 2)
79 return float(new_val - old_val) / abs(old_val)
/external/ltp/include/
Dtst_atomic.h164 int old_val, new_val; in tst_atomic_add_return() local
173 : "=&d" (old_val), "=&d" (new_val), "+Q" (*v) in tst_atomic_add_return()
177 return old_val + i; in tst_atomic_add_return()
/external/llvm-project/lldb/test/Shell/ExecControl/StopHook/Inputs/
Dstop-hook-threads.cpp20 uint32_t old_val = g_val; in access_pool() local
22 g_val = old_val + 1; in access_pool()
/external/llvm/include/llvm/Support/
DThreading.h98 sys::cas_flag old_val = sys::CompareAndSwap(&flag, Wait, Uninitialized); in call_once()
99 if (old_val == Uninitialized) { in call_once()
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DThreading.h98 sys::cas_flag old_val = sys::CompareAndSwap(&flag, Wait, Uninitialized); in call_once()
99 if (old_val == Uninitialized) { in call_once()
/external/llvm-project/lldb/test/API/python_api/watchpoint/watchlocation/
Dmain.cpp38 char old_val = *g_char_ptr; in access_pool() local
40 do_bad_thing_with_location(g_char_ptr, old_val + 1); in access_pool()
/external/fastrpc/src/
Dcae.c53 unsigned int old_val, in qurt_atomic_compare_val_and_set() argument
66 : "r" (target), "r" (old_val), "r" (new_val) in qurt_atomic_compare_val_and_set()
/external/llvm-project/lldb/test/API/commands/watchpoints/hello_watchlocation/
Dmain.cpp39 char old_val = *g_char_ptr; in access_pool() local
41 do_bad_thing_with_location(g_char_ptr, old_val + 1); in access_pool()
/external/tensorflow/tensorflow/tools/android/test/jni/object_tracking/
Dtime_log.h72 inline static float Blend(float old_val, float new_val) { in Blend() argument
73 return ALPHA * old_val + (1.0f - ALPHA) * new_val; in Blend()
/external/google-benchmark/tools/gbench/
Dreport.py71 def calculate_change(old_val, new_val): argument
75 if old_val == 0 and new_val == 0:
77 if old_val == 0:
78 return float(new_val - old_val) / (float(old_val + new_val) / 2)
79 return float(new_val - old_val) / abs(old_val)
/external/autotest/server/site_tests/firmware_Cr50ConsoleCommands/
Dfirmware_Cr50ConsoleCommands.py148 old_val = self.past_matches.get(k, [v, v])[0]
154 self.past_matches[k] = [old_val or v, regexp]
155 elif old_val and not v:
157 elif not old_val and v:

123