/external/icu/icu4c/source/i18n/ |
D | double-conversion-fast-dtoa.cpp | 314 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 …]
|
D | double-conversion-ieee.h | 68 explicit Double(DiyFp diy_fp) in Double() 73 DiyFp AsDiyFp() const { in AsDiyFp() 76 return DiyFp(Significand(), Exponent()); in AsDiyFp() 80 DiyFp AsNormalizedDiyFp() const { in AsNormalizedDiyFp() 91 f <<= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp() 92 e -= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp() 93 return DiyFp(f, e); in AsNormalizedDiyFp() 176 DiyFp UpperBoundary() const { in UpperBoundary() 178 return DiyFp(Significand() * 2 + 1, Exponent() - 1); in UpperBoundary() 185 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const { in NormalizedBoundaries() [all …]
|
D | double-conversion-diy-fp.h | 54 class DiyFp { 58 DiyFp() : f_(0), e_(0) {} in DiyFp() function 59 DiyFp(uint64_t significand, int exponent) : f_(significand), e_(exponent) {} in DiyFp() function 65 void Subtract(const DiyFp& other) { in Subtract() 74 static DiyFp Minus(const DiyFp& a, const DiyFp& b) { in Minus() 75 DiyFp result = a; in Minus() 82 void Multiply(const DiyFp& other); 85 static DiyFp Times(const DiyFp& a, const DiyFp& b) { in Times() 86 DiyFp result = a; in Times() 111 static DiyFp Normalize(const DiyFp& a) { in Normalize() [all …]
|
D | double-conversion-strtod.cpp | 192 DiyFp* result, in ReadDiyFp() 197 *result = DiyFp(significand, 0); in ReadDiyFp() 206 *result = DiyFp(significand, exponent); in ReadDiyFp() 266 static DiyFp AdjustmentPowerOfTen(int exponent) { in AdjustmentPowerOfTen() 273 case 1: return DiyFp(UINT64_2PART_C(0xa0000000, 00000000), -60); in AdjustmentPowerOfTen() 274 case 2: return DiyFp(UINT64_2PART_C(0xc8000000, 00000000), -57); in AdjustmentPowerOfTen() 275 case 3: return DiyFp(UINT64_2PART_C(0xfa000000, 00000000), -54); in AdjustmentPowerOfTen() 276 case 4: return DiyFp(UINT64_2PART_C(0x9c400000, 00000000), -50); in AdjustmentPowerOfTen() 277 case 5: return DiyFp(UINT64_2PART_C(0xc3500000, 00000000), -47); in AdjustmentPowerOfTen() 278 case 6: return DiyFp(UINT64_2PART_C(0xf4240000, 00000000), -44); in AdjustmentPowerOfTen() [all …]
|
D | double-conversion-cached-powers.cpp | 158 DiyFp* power, in GetCachedPowerForBinaryExponentRange() 160 int kQ = DiyFp::kSignificandSize; in GetCachedPowerForBinaryExponentRange() 171 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); in GetCachedPowerForBinaryExponentRange() 176 DiyFp* power, in GetCachedPowerForDecimalExponent() 183 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); in GetCachedPowerForDecimalExponent()
|
D | double-conversion-cached-powers.h | 63 DiyFp* power, 72 DiyFp* power,
|
D | double-conversion-diy-fp.cpp | 47 void DiyFp::Multiply(const DiyFp& other) { in Multiply()
|
D | double-conversion.cpp | 648 return Double(DiyFp(number, exponent)).value(); in RadixStringToIeee()
|
/external/v8/src/ |
D | fast-dtoa.cc | 371 static bool DigitGen(DiyFp low, in DigitGen() 372 DiyFp w, in DigitGen() 373 DiyFp high, in DigitGen() 392 DiyFp too_low = DiyFp(low.f() - unit, low.e()); in DigitGen() 393 DiyFp too_high = DiyFp(high.f() + unit, high.e()); in DigitGen() 396 DiyFp unsafe_interval = DiyFp::Minus(too_high, too_low); in DigitGen() 404 DiyFp one = DiyFp(static_cast<uint64_t>(1) << -w.e(), w.e()); in DigitGen() 411 BiggestPowerTen(integrals, DiyFp::kSignificandSize - (-one.e()), in DigitGen() 434 return RoundWeed(buffer, *length, DiyFp::Minus(too_high, w).f(), in DigitGen() 461 return RoundWeed(buffer, *length, DiyFp::Minus(too_high, w).f() * unit, in DigitGen() [all …]
|
D | diy-fp.h | 20 class DiyFp { 24 DiyFp() : f_(0), e_(0) {} in DiyFp() function 25 DiyFp(uint64_t f, int e) : f_(f), e_(e) {} in DiyFp() function 31 void Subtract(const DiyFp& other) { in Subtract() 40 static DiyFp Minus(const DiyFp& a, const DiyFp& b) { in Minus() 41 DiyFp result = a; in Minus() 48 void Multiply(const DiyFp& other); 51 static DiyFp Times(const DiyFp& a, const DiyFp& b) { in Times() 52 DiyFp result = a; in Times() 77 static DiyFp Normalize(const DiyFp& a) { in Normalize() [all …]
|
D | double.h | 35 explicit Double(DiyFp diy_fp) in Double() 40 DiyFp AsDiyFp() const { in AsDiyFp() 43 return DiyFp(Significand(), Exponent()); in AsDiyFp() 47 DiyFp AsNormalizedDiyFp() const { in AsNormalizedDiyFp() 58 f <<= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp() 59 e -= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp() 60 return DiyFp(f, e); in AsNormalizedDiyFp() 127 DiyFp UpperBoundary() const { in UpperBoundary() 129 return DiyFp(Significand() * 2 + 1, Exponent() - 1); in UpperBoundary() 136 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const { in NormalizedBoundaries() [all …]
|
D | strtod.cc | 135 DiyFp* result, in ReadDiyFp() 140 *result = DiyFp(significand, 0); in ReadDiyFp() 149 *result = DiyFp(significand, exponent); in ReadDiyFp() 214 static DiyFp AdjustmentPowerOfTen(int exponent) { in AdjustmentPowerOfTen() 222 return DiyFp(V8_2PART_UINT64_C(0xA0000000, 00000000), -60); in AdjustmentPowerOfTen() 224 return DiyFp(V8_2PART_UINT64_C(0xC8000000, 00000000), -57); in AdjustmentPowerOfTen() 226 return DiyFp(V8_2PART_UINT64_C(0xFA000000, 00000000), -54); in AdjustmentPowerOfTen() 228 return DiyFp(V8_2PART_UINT64_C(0x9C400000, 00000000), -50); in AdjustmentPowerOfTen() 230 return DiyFp(V8_2PART_UINT64_C(0xC3500000, 00000000), -47); in AdjustmentPowerOfTen() 232 return DiyFp(V8_2PART_UINT64_C(0xF4240000, 00000000), -44); in AdjustmentPowerOfTen() [all …]
|
D | cached-powers.cc | 128 DiyFp* power, in GetCachedPowerForBinaryExponentRange() 130 int kQ = DiyFp::kSignificandSize; in GetCachedPowerForBinaryExponentRange() 142 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); in GetCachedPowerForBinaryExponentRange() 147 DiyFp* power, in GetCachedPowerForDecimalExponent() 154 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); in GetCachedPowerForDecimalExponent()
|
D | cached-powers.h | 27 DiyFp* power, 36 DiyFp* power,
|
D | diy-fp.cc | 12 void DiyFp::Multiply(const DiyFp& other) { in Multiply()
|