Home
last modified time | relevance | path

Searched refs:new_val (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/boost/boost/atomic/detail/
Dextra_ops_emulated.hpp57 storage_type new_val = static_cast< storage_type >(-s); in negate() local
58 s = new_val; in negate()
59 return new_val; in negate()
67 storage_type new_val = s; in add() local
68 new_val += v; in add()
69 s = new_val; in add()
70 return new_val; in add()
78 storage_type new_val = s; in sub() local
79 new_val -= v; in sub()
80 s = new_val; in sub()
[all …]
Dwait_ops_generic.hpp55 storage_type new_val = base_type::load(storage, order); in wait() local
56 if (new_val == old_val) in wait()
59 new_val = base_type::load(storage, order); in wait()
60 while (new_val == old_val) in wait()
63 new_val = base_type::load(storage, order); in wait()
67 return new_val; in wait()
99 storage_type new_val = base_type::load(storage, order); in wait() local
100 if (new_val == old_val) in wait()
105 new_val = base_type::load(storage, order); in wait()
106 if (new_val != old_val) in wait()
[all …]
Dextra_fp_ops_generic.hpp60 value_type old_val, new_val; in fetch_negate() local
65 new_val = -old_val; in fetch_negate()
66 new_storage = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in fetch_negate()
75 value_type old_val, new_val; in negate() local
80 new_val = -old_val; in negate()
81 new_storage = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in negate()
84 return new_val; in negate()
137 value_type old_val, new_val; in add() local
142 new_val = old_val + v; in add()
143 new_storage = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in add()
[all …]
Dextra_fp_ops_emulated.hpp49 value_type new_val = -old_val; in fetch_negate() local
50 s = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in fetch_negate()
60 value_type new_val = -old_val; in negate() local
61 s = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in negate()
62 return new_val; in negate()
71 value_type new_val = old_val + v; in add() local
72 s = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in add()
73 return new_val; in add()
82 value_type new_val = old_val - v; in sub() local
83 s = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in sub()
[all …]
Dextra_ops_generic.hpp52 storage_type old_val, new_val; in negate() local
56new_val = atomics::detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_t… in negate()
58 … while (!base_type::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in negate()
59 return new_val; in negate()
209 storage_type old_val, new_val; in negate() local
213new_val = atomics::detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_t… in negate()
215 … while (!base_type::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in negate()
216 return new_val; in negate()
221 storage_type old_val, new_val; in add() local
225new_val = atomics::detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_t… in add()
[all …]
Dwait_ops_futex.hpp47 storage_type new_val = base_type::load(storage, order); in wait() local
48 while (new_val == old_val) in wait()
51 new_val = base_type::load(storage, order); in wait()
54 return new_val; in wait()
84 storage_type new_val = base_type::load(storage, order); in wait() local
85 while (new_val == old_val) in wait()
88 new_val = base_type::load(storage, order); in wait()
91 return new_val; in wait()
Dwait_ops_freebsd_umtx.hpp76 storage_type new_val = base_type::load(storage, order); in wait() local
77 while (new_val == old_val) in wait()
80 new_val = base_type::load(storage, order); in wait()
83 return new_val; in wait()
100 storage_type new_val = base_type::load(storage, order); in wait() local
101 while (new_val == old_val) in wait()
104 new_val = base_type::load(storage, order); in wait()
107 return new_val; in wait()
Dops_extending_cas_based.hpp42 storage_type new_val; in fetch_add() local
45new_val = atomics::detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_t… in fetch_add()
47 … while (!Base::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in fetch_add()
55 storage_type new_val; in fetch_sub() local
58new_val = atomics::detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_t… in fetch_sub()
60 … while (!Base::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in fetch_sub()
Dextending_cas_based_arithmetic.hpp43 storage_type new_val; in fetch_add() local
46new_val = atomics::detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_t… in fetch_add()
48 … while (!Base::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in fetch_add()
56 storage_type new_val; in fetch_sub() local
59new_val = atomics::detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_t… in fetch_sub()
61 … while (!Base::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in fetch_sub()
Dfp_ops_generic.hpp45 value_type old_val, new_val; in fetch_add() local
50 new_val = old_val + v; in fetch_add()
51 new_storage = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in fetch_add()
60 value_type old_val, new_val; in fetch_sub() local
65 new_val = old_val - v; in fetch_sub()
66 new_storage = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in fetch_sub()
Dwait_ops_dragonfly_umtx.hpp48 storage_type new_val = base_type::load(storage, order); in wait() local
49 while (new_val == old_val) in wait()
52 new_val = base_type::load(storage, order); in wait()
55 return new_val; in wait()
Dwait_ops_emulated.hpp60 storage_type new_val = s; in wait() local
61 while (new_val == old_val) in wait()
64 new_val = s; in wait()
67 return new_val; in wait()
Dfp_ops_emulated.hpp49 value_type new_val = old_val + v; in fetch_add() local
50 s = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in fetch_add()
60 value_type new_val = old_val - v; in fetch_sub() local
61 s = atomics::detail::bitwise_fp_cast< storage_type >(new_val); in fetch_sub()
Dops_gcc_x86.hpp169 temp_storage_type new_val;\
177 : [res] "+a" (result), [storage] "+m" (storage), "=&q" (new_val)\
270 temp_storage_type new_val;\
278 : [res] "+a" (result), [storage] "+m" (storage), "=&q" (new_val)\
370 storage_type new_val;\
378 : [res] "+a" (result), [storage] "+m" (storage), [new_val] "=&r" (new_val)\
482 storage_type new_val;\
490 : [res] "+a" (result), [storage] "+m" (storage), [new_val] "=&r" (new_val)\
Dwait_ops_windows.hpp84 storage_type new_val = base_type::load(storage, order); in wait() local
85 while (new_val == old_val) in wait()
88 new_val = base_type::load(storage, order); in wait()
91 return new_val; in wait()
/third_party/ffmpeg/libavcodec/
Dcos_tablegen.c44 double new_val = val * (double) (1 << 15); in printval() local
46 new_val = new_val >= 0 ? floor(new_val + 0.5) : ceil(new_val - 0.5); in printval()
48 printf(" "FIXEDFMT",", clip_f15((long int) new_val)); in printval()
/third_party/boost/libs/multiprecision/test/
Dtest_rational_io.cpp78 T new_val = static_cast<T>(ss.str()); in do_round_trip() local
79 BOOST_CHECK_EQUAL(new_val, val); in do_round_trip()
80 new_val = static_cast<T>(val.str(0, f)); in do_round_trip()
81 BOOST_CHECK_EQUAL(new_val, val); in do_round_trip()
91 T new_val; in do_round_trip() local
92 ss >> new_val; in do_round_trip()
93 BOOST_CHECK_EQUAL(new_val, val); in do_round_trip()
Dtest_int_io.cpp91 T new_val = static_cast<T>(ss.str()); in do_round_trip() local
92 BOOST_CHECK_EQUAL(new_val, val); in do_round_trip()
93 new_val = static_cast<T>(val.str(0, f)); in do_round_trip()
94 BOOST_CHECK_EQUAL(new_val, val); in do_round_trip()
95 ss >> new_val; in do_round_trip()
96 BOOST_CHECK_EQUAL(new_val, val); in do_round_trip()
/third_party/libcoap/tests/
Dtest_pdu.c858 int new_val; in t_encode_pdu16() local
872 new_val = 0x12345; in t_encode_pdu16()
874 coap_encode_var_safe(buf, sizeof(buf), new_val), buf); in t_encode_pdu16()
877 new_val = 51; in t_encode_pdu16()
879 coap_encode_var_safe(buf, sizeof(buf), new_val), buf); in t_encode_pdu16()
882 new_val = 0; in t_encode_pdu16()
884 coap_encode_var_safe(buf, sizeof(buf), new_val), buf); in t_encode_pdu16()
887 new_val = 50; in t_encode_pdu16()
889 coap_encode_var_safe(buf, sizeof(buf), new_val), buf); in t_encode_pdu16()
892 new_val = 0x6543210; in t_encode_pdu16()
[all …]
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstglcolorbalance.c522 gdouble new_val; in gst_gl_color_balance_colorbalance_set_value() local
531 new_val = (value + 1000.0) * 2.0 / 2000.0 - 1.0; in gst_gl_color_balance_colorbalance_set_value()
532 changed = new_val != vb->hue; in gst_gl_color_balance_colorbalance_set_value()
533 vb->hue = new_val; in gst_gl_color_balance_colorbalance_set_value()
535 new_val = (value + 1000.0) * 2.0 / 2000.0; in gst_gl_color_balance_colorbalance_set_value()
536 changed = new_val != vb->saturation; in gst_gl_color_balance_colorbalance_set_value()
537 vb->saturation = new_val; in gst_gl_color_balance_colorbalance_set_value()
539 new_val = (value + 1000.0) * 2.0 / 2000.0 - 1.0; in gst_gl_color_balance_colorbalance_set_value()
540 changed = new_val != vb->brightness; in gst_gl_color_balance_colorbalance_set_value()
541 vb->brightness = new_val; in gst_gl_color_balance_colorbalance_set_value()
[all …]
/third_party/ltp/testcases/lib/
Dtst_security.sh146 local cur_val new_val
151 [ $cur_val = 1 ] && new_val=0 || new_val=1
152 echo $new_val > $dir/checkreqprot
/third_party/skia/modules/skottie/src/animator/
DVectorKeyframeAnimator.cpp116 new_val = Lerp(Sk4f::Load(v0), Sk4f::Load(v1), lerp_info.weight); in onSeek() local
118 changed |= (new_val != old_val).anyTrue(); in onSeek()
119 new_val.store(dst); in onSeek()
128 const auto new_val = Lerp(*v0++, *v1++, lerp_info.weight); in onSeek() local
130 changed |= (new_val != *dst); in onSeek()
131 *dst++ = new_val; in onSeek()
/third_party/json/benchmarks/thirdparty/benchmark/tools/gbench/
Dreport.py60 def calculate_change(old_val, new_val): argument
64 if old_val == 0 and new_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)
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dccp_pass.cpp146 uint32_t new_val = ComputeLatticeMeet(instr, it->second); in VisitAssignment() local
147 values_[instr->result_id()] = new_val; in VisitAssignment()
148 return IsVaryingValue(new_val) ? SSAPropagator::kVarying in VisitAssignment()
177 uint32_t new_val = ComputeLatticeMeet(instr, folded_inst->result_id()); in VisitAssignment() local
178 values_[instr->result_id()] = new_val; in VisitAssignment()
179 return IsVaryingValue(new_val) ? SSAPropagator::kVarying in VisitAssignment()
/third_party/mindspore/tests/ut/cpp/dataset/
Dcyclic_array_test.cc120 const auto new_val = -600000; in TEST_F() local
122 arr2.push_back(new_val); in TEST_F()
124 EXPECT_EQ(*(--arr2.end()), new_val); in TEST_F()
126 EXPECT_EQ(*arr2.begin(), new_val); in TEST_F()

1234