Home
last modified time | relevance | path

Searched refs:DiyFp (Results 1 – 10 of 10) sorted by relevance

/external/icu/icu4c/source/i18n/
Ddouble-conversion-fast-dtoa.cpp314 static bool DigitGen(DiyFp low, in DigitGen()
315 DiyFp w, in DigitGen()
316 DiyFp high, in DigitGen()
335 DiyFp too_low = DiyFp(low.f() - unit, low.e()); in DigitGen()
336 DiyFp too_high = DiyFp(high.f() + unit, high.e()); in DigitGen()
339 DiyFp unsafe_interval = DiyFp::Minus(too_high, too_low); in DigitGen()
347 DiyFp one = DiyFp(static_cast<uint64_t>(1) << -w.e(), w.e()); in DigitGen()
354 BiggestPowerTen(integrals, DiyFp::kSignificandSize - (-one.e()), in DigitGen()
378 return RoundWeed(buffer, *length, DiyFp::Minus(too_high, w).f(), in DigitGen()
406 return RoundWeed(buffer, *length, DiyFp::Minus(too_high, w).f() * unit, in DigitGen()
[all …]
Ddouble-conversion-ieee.h71 explicit Double(DiyFp diy_fp) in Double()
76 DiyFp AsDiyFp() const { in AsDiyFp()
79 return DiyFp(Significand(), Exponent()); in AsDiyFp()
83 DiyFp AsNormalizedDiyFp() const { in AsNormalizedDiyFp()
94 f <<= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
95 e -= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
96 return DiyFp(f, e); in AsNormalizedDiyFp()
188 DiyFp UpperBoundary() const { in UpperBoundary()
190 return DiyFp(Significand() * 2 + 1, Exponent() - 1); in UpperBoundary()
197 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const { in NormalizedBoundaries()
[all …]
Ddouble-conversion-diy-fp.h55 class DiyFp {
59 DiyFp() : f_(0), e_(0) {} in DiyFp() function
60 DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {} in DiyFp() function
66 void Subtract(const DiyFp& other) { in Subtract()
75 static DiyFp Minus(const DiyFp& a, const DiyFp& b) { in Minus()
76 DiyFp result = a; in Minus()
82 void Multiply(const DiyFp& other) { in Multiply()
104 static DiyFp Times(const DiyFp& a, const DiyFp& b) { in Times()
105 DiyFp result = a; in Times()
130 static DiyFp Normalize(const DiyFp& a) { in Normalize()
[all …]
Ddouble-conversion-strtod.cpp195 DiyFp* result, in ReadDiyFp()
200 *result = DiyFp(significand, 0); in ReadDiyFp()
209 *result = DiyFp(significand, exponent); in ReadDiyFp()
270 static DiyFp AdjustmentPowerOfTen(int exponent) { in AdjustmentPowerOfTen()
277 case 1: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xa0000000, 00000000), -60); in AdjustmentPowerOfTen()
278 case 2: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc8000000, 00000000), -57); in AdjustmentPowerOfTen()
279 case 3: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xfa000000, 00000000), -54); in AdjustmentPowerOfTen()
280 case 4: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x9c400000, 00000000), -50); in AdjustmentPowerOfTen()
281 case 5: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc3500000, 00000000), -47); in AdjustmentPowerOfTen()
282 case 6: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xf4240000, 00000000), -44); in AdjustmentPowerOfTen()
[all …]
Ddouble-conversion-cached-powers.cpp156 DiyFp* power, in GetCachedPowerForBinaryExponentRange()
158 int kQ = DiyFp::kSignificandSize; in GetCachedPowerForBinaryExponentRange()
169 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); in GetCachedPowerForBinaryExponentRange()
174 DiyFp* power, in GetCachedPowerForDecimalExponent()
181 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); in GetCachedPowerForDecimalExponent()
Ddouble-conversion-cached-powers.h62 DiyFp* power,
71 DiyFp* power,
Ddouble-conversion-string-to-double.cpp423 double result = Double(DiyFp(number, exponent)).value(); in RadixStringToIeee()
/external/icu/libicu/cts_headers/
Ddouble-conversion-ieee.h71 explicit Double(DiyFp diy_fp) in Double()
76 DiyFp AsDiyFp() const { in AsDiyFp()
79 return DiyFp(Significand(), Exponent()); in AsDiyFp()
83 DiyFp AsNormalizedDiyFp() const { in AsNormalizedDiyFp()
94 f <<= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
95 e -= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
96 return DiyFp(f, e); in AsNormalizedDiyFp()
188 DiyFp UpperBoundary() const { in UpperBoundary()
190 return DiyFp(Significand() * 2 + 1, Exponent() - 1); in UpperBoundary()
197 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const { in NormalizedBoundaries()
[all …]
Ddouble-conversion-diy-fp.h55 class DiyFp {
59 DiyFp() : f_(0), e_(0) {} in DiyFp() function
60 DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {} in DiyFp() function
66 void Subtract(const DiyFp& other) { in Subtract()
75 static DiyFp Minus(const DiyFp& a, const DiyFp& b) { in Minus()
76 DiyFp result = a; in Minus()
82 void Multiply(const DiyFp& other) { in Multiply()
104 static DiyFp Times(const DiyFp& a, const DiyFp& b) { in Times()
105 DiyFp result = a; in Times()
130 static DiyFp Normalize(const DiyFp& a) { in Normalize()
[all …]
Ddouble-conversion-cached-powers.h62 DiyFp* power,
71 DiyFp* power,