Searched refs:half_way (Results 1 – 2 of 2) sorted by relevance
83 const T half_way = (limits::max() - limits::min())/2; in unsigned_test() local98 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()
379 uint64_t half_way = one64 << (precision_digits_count - 1); in DiyFpStrtod() local381 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()