Home
last modified time | relevance | path

Searched refs:half_way (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/
Dmidpoint.integer.pass.cpp83 const T half_way = (limits::max() - limits::min())/2; in unsigned_test() local
98 assert(std::midpoint(limits::min(), limits::max()) == T(half_way)); in unsigned_test()
99 assert(std::midpoint(limits::max(), limits::min()) == T(half_way + 1)); in unsigned_test()
103 assert( std::midpoint(limits::max(), T(6)) == half_way + 4); in unsigned_test()
104 static_assert(std::midpoint(T(6), limits::max()) == half_way + 3, ""); in unsigned_test()
/external/icu/icu4c/source/i18n/
Ddouble-conversion-strtod.cpp379 uint64_t half_way = one64 << (precision_digits_count - 1); in DiyFpStrtod() local
381 half_way *= kDenominator; in DiyFpStrtod()
384 if (precision_bits >= half_way + error) { in DiyFpStrtod()
392 if (half_way - error < precision_bits && precision_bits < half_way + error) { in DiyFpStrtod()