Home
last modified time | relevance | path

Searched refs:fractionals (Results 1 – 3 of 3) sorted by relevance

/external/v8/src/numbers/
Dfast-dtoa.cc390 uint64_t fractionals = too_high.f() & (one.f() - 1); in DigitGen() local
410 (static_cast<uint64_t>(integrals) << -one.e()) + fractionals; in DigitGen()
430 DCHECK(fractionals < one.f()); in DigitGen()
433 fractionals *= 10; in DigitGen()
437 int digit = static_cast<int>(fractionals >> -one.e()); in DigitGen()
440 fractionals &= one.f() - 1; // Modulo by one. in DigitGen()
442 if (fractionals < unsafe_interval.f()) { in DigitGen()
444 unsafe_interval.f(), fractionals, one.f(), unit); in DigitGen()
493 uint64_t fractionals = w.f() & (one.f() - 1); in DigitGenCounted() local
520 (static_cast<uint64_t>(integrals) << -one.e()) + fractionals; in DigitGenCounted()
[all …]
Dfixed-dtoa.cc204 static void FillFractionals(uint64_t fractionals, int exponent, in FillFractionals() argument
213 DCHECK_EQ(fractionals >> 56, 0); in FillFractionals()
216 if (fractionals == 0) break; in FillFractionals()
227 fractionals *= 5; in FillFractionals()
229 int digit = static_cast<int>(fractionals >> point); in FillFractionals()
232 fractionals -= static_cast<uint64_t>(digit) << point; in FillFractionals()
235 if (point > 0 && ((fractionals >> (point - 1)) & 1) == 1) { in FillFractionals()
240 UInt128 fractionals128 = UInt128(fractionals, 0); in FillFractionals()
340 uint64_t fractionals = significand - (integrals << -exponent); in FastFixedDtoa() local
347 FillFractionals(fractionals, exponent, fractional_count, buffer, length, in FastFixedDtoa()
/external/icu/icu4c/source/i18n/
Ddouble-conversion-fast-dtoa.cpp351 uint64_t fractionals = too_high.f() & (one.f() - 1); in DigitGen() local
372 (static_cast<uint64_t>(integrals) << -one.e()) + fractionals; in DigitGen()
392 DOUBLE_CONVERSION_ASSERT(fractionals < one.f()); in DigitGen()
395 fractionals *= 10; in DigitGen()
399 int digit = static_cast<int>(fractionals >> -one.e()); in DigitGen()
403 fractionals &= one.f() - 1; // Modulo by one. in DigitGen()
405 if (fractionals < unsafe_interval.f()) { in DigitGen()
407 unsafe_interval.f(), fractionals, one.f(), unit); in DigitGen()
461 uint64_t fractionals = w.f() & (one.f() - 1); in DigitGenCounted() local
489 (static_cast<uint64_t>(integrals) << -one.e()) + fractionals; in DigitGenCounted()
[all …]