/third_party/boost/boost/atomic/detail/ |
D | ops_cas_based.hpp | 37 storage_type old_val; in exchange() local 38 atomics::detail::non_atomic_load(storage, old_val); in exchange() 39 while (!Base::compare_exchange_weak(storage, old_val, v, order, memory_order_relaxed)) {} in exchange() 40 return old_val; in exchange() 54 storage_type old_val; in fetch_add() local 55 atomics::detail::non_atomic_load(storage, old_val); in fetch_add() 56 …while (!Base::compare_exchange_weak(storage, old_val, old_val + v, order, memory_order_relaxed)) {} in fetch_add() 57 return old_val; in fetch_add() 62 storage_type old_val; in fetch_sub() local 63 atomics::detail::non_atomic_load(storage, old_val); in fetch_sub() [all …]
|
D | core_ops_cas_based.hpp | 39 storage_type old_val; in fetch_add() local 40 atomics::detail::non_atomic_load(storage, old_val); in fetch_add() 41 …while (!Base::compare_exchange_weak(storage, old_val, old_val + v, order, memory_order_relaxed)) {} in fetch_add() 42 return old_val; in fetch_add() 47 storage_type old_val; in fetch_sub() local 48 atomics::detail::non_atomic_load(storage, old_val); in fetch_sub() 49 …while (!Base::compare_exchange_weak(storage, old_val, old_val - v, order, memory_order_relaxed)) {} in fetch_sub() 50 return old_val; in fetch_sub() 55 storage_type old_val; in fetch_and() local 56 atomics::detail::non_atomic_load(storage, old_val); in fetch_and() [all …]
|
D | extra_ops_generic.hpp | 44 storage_type old_val; in fetch_negate() local 45 atomics::detail::non_atomic_load(storage, old_val); in fetch_negate() 46 …change_weak(storage, old_val, atomics::detail::integral_extend< Signed, storage_type >(static_cast… in fetch_negate() 47 return old_val; in fetch_negate() 52 storage_type old_val, new_val; in negate() local 53 atomics::detail::non_atomic_load(storage, old_val); in negate() 56 …s::detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_type >(-old_val)); in negate() 58 … while (!base_type::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in negate() 171 storage_type old_val = base_type::fetch_or(storage, mask, order); in bit_test_and_set() local 172 return !!(old_val & mask); in bit_test_and_set() [all …]
|
D | ops_emulated.hpp | 61 storage_type old_val = s; in fetch_add() local 63 return old_val; in fetch_add() 70 storage_type old_val = s; in fetch_sub() local 72 return old_val; in fetch_sub() 79 storage_type old_val = s; in exchange() local 81 return old_val; in exchange() 89 storage_type old_val = s; in compare_exchange_strong() local 90 const bool res = old_val == expected; in compare_exchange_strong() 93 expected = old_val; in compare_exchange_strong() 105 storage_type old_val = s; in compare_exchange_weak() local [all …]
|
D | core_operations_emulated.hpp | 89 storage_type old_val = s; in fetch_add() local 91 return old_val; in fetch_add() 99 storage_type old_val = s; in fetch_sub() local 101 return old_val; in fetch_sub() 109 storage_type old_val = s; in exchange() local 111 return old_val; in exchange() 120 storage_type old_val = s; in compare_exchange_strong() local 121 const bool res = old_val == expected; in compare_exchange_strong() 124 expected = old_val; in compare_exchange_strong() 137 storage_type old_val = s; in compare_exchange_weak() local [all …]
|
D | ops_extending_cas_based.hpp | 40 storage_type old_val; in fetch_add() local 41 atomics::detail::non_atomic_load(storage, old_val); in fetch_add() 45 …detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_type >(old_val + v)); in fetch_add() 47 … while (!Base::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in fetch_add() 48 return old_val; in fetch_add() 53 storage_type old_val; in fetch_sub() local 54 atomics::detail::non_atomic_load(storage, old_val); in fetch_sub() 58 …detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_type >(old_val - v)); in fetch_sub() 60 … while (!Base::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in fetch_sub() 61 return old_val; in fetch_sub()
|
D | extending_cas_based_arithmetic.hpp | 41 storage_type old_val; in fetch_add() local 42 atomics::detail::non_atomic_load(storage, old_val); in fetch_add() 46 …detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_type >(old_val + v)); in fetch_add() 48 … while (!Base::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in fetch_add() 49 return old_val; in fetch_add() 54 storage_type old_val; in fetch_sub() local 55 atomics::detail::non_atomic_load(storage, old_val); in fetch_sub() 59 …detail::integral_extend< Signed, storage_type >(static_cast< emulated_storage_type >(old_val - v)); in fetch_sub() 61 … while (!Base::compare_exchange_weak(storage, old_val, new_val, order, memory_order_relaxed)); in fetch_sub() 62 return old_val; in fetch_sub()
|
D | extra_fp_ops_generic.hpp | 60 value_type old_val, new_val; in fetch_negate() local 64 old_val = atomics::detail::bitwise_fp_cast< value_type >(old_storage); in fetch_negate() 65 new_val = -old_val; in fetch_negate() 69 return old_val; in fetch_negate() 75 value_type old_val, new_val; in negate() local 79 old_val = atomics::detail::bitwise_fp_cast< value_type >(old_storage); in negate() 80 new_val = -old_val; in negate() 137 value_type old_val, new_val; in add() local 141 old_val = atomics::detail::bitwise_fp_cast< value_type >(old_storage); in add() 142 new_val = old_val + v; in add() [all …]
|
D | fp_ops_generic.hpp | 45 value_type old_val, new_val; in fetch_add() local 49 old_val = atomics::detail::bitwise_fp_cast< value_type >(old_storage); in fetch_add() 50 new_val = old_val + v; in fetch_add() 54 return old_val; in fetch_add() 60 value_type old_val, new_val; in fetch_sub() local 64 old_val = atomics::detail::bitwise_fp_cast< value_type >(old_storage); in fetch_sub() 65 new_val = old_val - v; in fetch_sub() 69 return old_val; in fetch_sub()
|
D | extra_fp_ops_emulated.hpp | 48 value_type old_val = atomics::detail::bitwise_fp_cast< value_type >(s); in fetch_negate() local 49 value_type new_val = -old_val; in fetch_negate() 51 return old_val; in fetch_negate() 59 value_type old_val = atomics::detail::bitwise_fp_cast< value_type >(s); in negate() local 60 value_type new_val = -old_val; in negate() 70 value_type old_val = atomics::detail::bitwise_fp_cast< value_type >(s); in add() local 71 value_type new_val = old_val + v; in add() 81 value_type old_val = atomics::detail::bitwise_fp_cast< value_type >(s); in sub() local 82 value_type new_val = old_val - v; in sub()
|
D | ops_msvc_arm.hpp | 206 storage_type previous = expected, old_val; in compare_exchange_strong() local 211 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE8_RELAXED(&storage,… in compare_exchange_strong() 215 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE8_ACQUIRE(&storage,… in compare_exchange_strong() 218 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE8_RELEASE(&storage,… in compare_exchange_strong() 223 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE8(&storage, desired… in compare_exchange_strong() 226 expected = old_val; in compare_exchange_strong() 228 return (previous == old_val); in compare_exchange_strong() 371 storage_type previous = expected, old_val; in compare_exchange_strong() local 376 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE16_RELAXED(&storage… in compare_exchange_strong() 380 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE16_ACQUIRE(&storage… in compare_exchange_strong() [all …]
|
D | fp_ops_emulated.hpp | 48 value_type old_val = atomics::detail::bitwise_fp_cast< value_type >(s); in fetch_add() local 49 value_type new_val = old_val + v; in fetch_add() 51 return old_val; in fetch_add() 59 value_type old_val = atomics::detail::bitwise_fp_cast< value_type >(s); in fetch_sub() local 60 value_type new_val = old_val - v; in fetch_sub() 62 return old_val; in fetch_sub()
|
D | wait_ops_generic.hpp | 53 …INE storage_type wait(storage_type const volatile& storage, storage_type old_val, memory_order ord… in wait() 56 if (new_val == old_val) in wait() 60 while (new_val == old_val) in wait() 97 …INE storage_type wait(storage_type const volatile& storage, storage_type old_val, memory_order ord… in wait() 100 if (new_val == old_val) in wait() 106 if (new_val != old_val) in wait() 115 while (new_val == old_val); in wait()
|
D | core_arch_ops_msvc_arm.hpp | 223 storage_type previous = expected, old_val; in compare_exchange_strong() local 228 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE8_RELAXED(&storage,… in compare_exchange_strong() 232 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE8_ACQUIRE(&storage,… in compare_exchange_strong() 235 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE8_RELEASE(&storage,… in compare_exchange_strong() 240 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE8(&storage, desired… in compare_exchange_strong() 243 expected = old_val; in compare_exchange_strong() 245 return (previous == old_val); in compare_exchange_strong() 388 storage_type previous = expected, old_val; in compare_exchange_strong() local 393 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE16_RELAXED(&storage… in compare_exchange_strong() 397 …old_val = static_cast< storage_type >(BOOST_ATOMIC_INTERLOCKED_COMPARE_EXCHANGE16_ACQUIRE(&storage… in compare_exchange_strong() [all …]
|
D | wait_ops_futex.hpp | 45 …INE storage_type wait(storage_type const volatile& storage, storage_type old_val, memory_order ord… in wait() 48 while (new_val == old_val) in wait() 50 atomics::detail::futex_wait_private(const_cast< storage_type* >(&storage), old_val); in wait() 82 …INE storage_type wait(storage_type const volatile& storage, storage_type old_val, memory_order ord… in wait() 85 while (new_val == old_val) in wait() 87 atomics::detail::futex_wait(const_cast< storage_type* >(&storage), old_val); in wait()
|
D | wait_ops_freebsd_umtx.hpp | 74 …INE storage_type wait(storage_type const volatile& storage, storage_type old_val, memory_order ord… in wait() 77 while (new_val == old_val) in wait() 79 … ::_umtx_op(const_cast< storage_type* >(&storage), UMTX_OP_WAIT_UINT, old_val, NULL, NULL); in wait() 98 …INE storage_type wait(storage_type const volatile& storage, storage_type old_val, memory_order ord… in wait() 101 while (new_val == old_val) in wait() 103 ::_umtx_op(const_cast< storage_type* >(&storage), UMTX_OP_WAIT, old_val, NULL, NULL); in wait()
|
D | extra_ops_emulated.hpp | 47 storage_type old_val = s; in fetch_negate() local 48 s = static_cast< storage_type >(-old_val); in fetch_negate() 49 return old_val; in fetch_negate() 122 storage_type old_val = s; in fetch_complement() local 123 s = static_cast< storage_type >(~old_val); in fetch_complement() 124 return old_val; in fetch_complement() 225 storage_type old_val = base_type::fetch_or(storage, mask, order); in bit_test_and_set() local 226 return !!(old_val & mask); in bit_test_and_set() 233 storage_type old_val = base_type::fetch_and(storage, ~mask, order); in bit_test_and_reset() local 234 return !!(old_val & mask); in bit_test_and_reset() [all …]
|
D | cas_based_exchange.hpp | 37 storage_type old_val; in exchange() local 38 atomics::detail::non_atomic_load(storage, old_val); in exchange() 39 while (!Base::compare_exchange_weak(storage, old_val, v, order, memory_order_relaxed)) {} in exchange() 40 return old_val; in exchange()
|
D | wait_ops_dragonfly_umtx.hpp | 46 …INE storage_type wait(storage_type const volatile& storage, storage_type old_val, memory_order ord… in wait() 49 while (new_val == old_val) in wait() 51 …p(reinterpret_cast< int* >(const_cast< storage_type* >(&storage)), static_cast< int >(old_val), 0); in wait()
|
D | wait_ops_windows.hpp | 78 …INE storage_type wait(storage_type const volatile& storage, storage_type old_val, memory_order ord… in wait() 85 while (new_val == old_val) in wait() 87 …atomics::detail::wait_on_address(const_cast< storage_type* >(&storage), &old_val, Size, boost::win… in wait() 95 return base_type::wait(storage, old_val, order); in wait()
|
/third_party/pulseaudio/src/pulsecore/ |
D | atomic.h | 425 int new_val, old_val; in pa_atomic_add() local 432 : "=&r" (old_val), "=&r" (not_exclusive), "=&r" (new_val) in pa_atomic_add() 438 return old_val; in pa_atomic_add() 444 int new_val, old_val; in pa_atomic_sub() local 451 : "=&r" (old_val), "=&r" (not_exclusive), "=&r" (new_val) in pa_atomic_sub() 457 return old_val; in pa_atomic_sub() 564 int old_val; in pa_atomic_add() local 566 old_val = a->value; in pa_atomic_add() 567 } while(__kernel_cmpxchg(old_val, old_val + i, &a->value)); in pa_atomic_add() 568 return old_val; in pa_atomic_add() [all …]
|
/third_party/boost/libs/atomic/src/ |
D | wait_ops_windows.cpp | 57 …once_flag_operations::storage_type old_val = once_flag_operations::load(wait_functions_once_flag.m… in initialize_wait_functions() local 60 if (old_val == 2u) in initialize_wait_functions() 62 …lag_operations::compare_exchange_strong(wait_functions_once_flag.m_flag, old_val, 1u, boost::memor… in initialize_wait_functions() 86 else if (old_val == 1u) in initialize_wait_functions() 89 …old_val = once_flag_operations::load(wait_functions_once_flag.m_flag, boost::memory_order_acquire); in initialize_wait_functions()
|
/third_party/json/benchmarks/thirdparty/benchmark/tools/gbench/ |
D | report.py | 60 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)
|
/third_party/mtdev/src/ |
D | core.c | 53 static int defuzz(int value, int old_val, int fuzz) in defuzz() argument 56 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in defuzz() 57 return old_val; in defuzz() 59 if (value > old_val - fuzz && value < old_val + fuzz) in defuzz() 60 return (old_val * 3 + value) / 4; in defuzz() 62 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in defuzz() 63 return (old_val + value) / 2; in defuzz()
|
/third_party/grpc/src/core/ext/transport/chttp2/transport/ |
D | flow_control.cc | 51 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()
|