Lines Matching full:exponent
301 void DtoaHelper::FillFractionals(uint64_t fractionals, int exponent, int fractional_count, in FillFractionals() argument
304 ASSERT(NEGATIVE_128BIT <= exponent && exponent <= 0); in FillFractionals()
306 // (-exponent). Inside the function the non-converted remainder of fractionals in FillFractionals()
308 if (-exponent <= EXPONENT_64) { in FillFractionals()
311 int point = -exponent; in FillFractionals()
326 ASSERT(EXPONENT_64 < -exponent && -exponent <= EXPONENT_128); in FillFractionals()
328 fractionals128.Shift(-exponent - EXPONENT_64); in FillFractionals()
378 int exponent = NumberHelper::Exponent(v); in FixedDtoa() local
379 if (exponent > 20) return false; // 20: max parameter in FixedDtoa()
382 if (exponent + kDoubleSignificandSize > EXPONENT_64) { in FixedDtoa()
389 if (exponent > divisor_power) { in FixedDtoa()
391 dividend <<= exponent - divisor_power; in FixedDtoa()
395 divisor <<= divisor_power - exponent; in FixedDtoa()
397 remainder = (dividend % divisor) << exponent; in FixedDtoa()
402 } else if (exponent >= 0) { in FixedDtoa()
403 // 0 <= exponent <= 11 in FixedDtoa()
404 significand <<= exponent; in FixedDtoa()
407 } else if (exponent > -kDoubleSignificandSize) { in FixedDtoa()
409 uint64_t integrals = significand >> -exponent; in FixedDtoa()
410 uint64_t fractionals = significand - (integrals << -exponent); in FixedDtoa()
417 FillFractionals(fractionals, exponent, fractional_count, in FixedDtoa()
419 } else if (exponent < NEGATIVE_128BIT) { in FixedDtoa()
426 FillFractionals(significand, exponent, fractional_count, in FixedDtoa()