Lines Matching refs:DiyFp
357 static bool DigitGen(DiyFp low, DiyFp w, DiyFp high, Vector<char> buffer, in DigitGen()
374 DiyFp too_low = DiyFp(low.f() - unit, low.e()); in DigitGen()
375 DiyFp too_high = DiyFp(high.f() + unit, high.e()); in DigitGen()
378 DiyFp unsafe_interval = DiyFp::Minus(too_high, too_low); in DigitGen()
386 DiyFp one = DiyFp(static_cast<uint64_t>(1) << -w.e(), w.e()); in DigitGen()
393 BiggestPowerTen(integrals, DiyFp::kSignificandSize - (-one.e()), &divisor, in DigitGen()
416 return RoundWeed(buffer, *length, DiyFp::Minus(too_high, w).f(), in DigitGen()
443 return RoundWeed(buffer, *length, DiyFp::Minus(too_high, w).f() * unit, in DigitGen()
477 static bool DigitGenCounted(DiyFp w, int requested_digits, Vector<char> buffer, in DigitGenCounted()
489 DiyFp one = DiyFp(static_cast<uint64_t>(1) << -w.e(), w.e()); in DigitGenCounted()
496 BiggestPowerTen(integrals, DiyFp::kSignificandSize - (-one.e()), &divisor, in DigitGenCounted()
564 DiyFp w = Double(v).AsNormalizedDiyFp(); in Grisu3()
569 DiyFp boundary_minus, boundary_plus; in Grisu3()
572 DiyFp ten_mk; // Cached power of ten: 10^-k in Grisu3()
575 kMinimalTargetExponent - (w.e() + DiyFp::kSignificandSize); in Grisu3()
577 kMaximalTargetExponent - (w.e() + DiyFp::kSignificandSize); in Grisu3()
583 w.e() + ten_mk.e() + DiyFp::kSignificandSize) && in Grisu3()
584 (kMaximalTargetExponent >= w.e() + ten_mk.e() + DiyFp::kSignificandSize)); in Grisu3()
594 DiyFp scaled_w = DiyFp::Times(w, ten_mk); in Grisu3()
596 boundary_plus.e() + ten_mk.e() + DiyFp::kSignificandSize); in Grisu3()
602 DiyFp scaled_boundary_minus = DiyFp::Times(boundary_minus, ten_mk); in Grisu3()
603 DiyFp scaled_boundary_plus = DiyFp::Times(boundary_plus, ten_mk); in Grisu3()
625 DiyFp w = Double(v).AsNormalizedDiyFp(); in Grisu3Counted()
626 DiyFp ten_mk; // Cached power of ten: 10^-k in Grisu3Counted()
629 kMinimalTargetExponent - (w.e() + DiyFp::kSignificandSize); in Grisu3Counted()
631 kMaximalTargetExponent - (w.e() + DiyFp::kSignificandSize); in Grisu3Counted()
637 w.e() + ten_mk.e() + DiyFp::kSignificandSize) && in Grisu3Counted()
638 (kMaximalTargetExponent >= w.e() + ten_mk.e() + DiyFp::kSignificandSize)); in Grisu3Counted()
648 DiyFp scaled_w = DiyFp::Times(w, ten_mk); in Grisu3Counted()