Home
last modified time | relevance | path

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

12

/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Ddouble-conversion-diy-fp.h54 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 …]
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.h68 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 …]
Ddouble-conversion-strtod.cpp192 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 …]
Ddouble-conversion-cached-powers.cpp158 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()
Ddouble-conversion-cached-powers.h63 DiyFp* power,
72 DiyFp* power,
Ddouble-conversion-diy-fp.cpp47 void DiyFp::Multiply(const DiyFp& other) { in Multiply()
/third_party/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,
/third_party/node/deps/icu-small/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.cpp184 DiyFp* result, in ReadDiyFp()
189 *result = DiyFp(significand, 0); in ReadDiyFp()
198 *result = DiyFp(significand, exponent); in ReadDiyFp()
261 static DiyFp AdjustmentPowerOfTen(int exponent) { in AdjustmentPowerOfTen()
268 case 1: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xa0000000, 00000000), -60); in AdjustmentPowerOfTen()
269 case 2: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc8000000, 00000000), -57); in AdjustmentPowerOfTen()
270 case 3: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xfa000000, 00000000), -54); in AdjustmentPowerOfTen()
271 case 4: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x9c400000, 00000000), -50); in AdjustmentPowerOfTen()
272 case 5: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc3500000, 00000000), -47); in AdjustmentPowerOfTen()
273 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,
/third_party/skia/third_party/externals/icu/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.cpp184 DiyFp* result, in ReadDiyFp()
189 *result = DiyFp(significand, 0); in ReadDiyFp()
198 *result = DiyFp(significand, exponent); in ReadDiyFp()
261 static DiyFp AdjustmentPowerOfTen(int exponent) { in AdjustmentPowerOfTen()
268 case 1: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xa0000000, 00000000), -60); in AdjustmentPowerOfTen()
269 case 2: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc8000000, 00000000), -57); in AdjustmentPowerOfTen()
270 case 3: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xfa000000, 00000000), -54); in AdjustmentPowerOfTen()
271 case 4: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0x9c400000, 00000000), -50); in AdjustmentPowerOfTen()
272 case 5: return DiyFp(DOUBLE_CONVERSION_UINT64_2PART_C(0xc3500000, 00000000), -47); in AdjustmentPowerOfTen()
273 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,

12