Home
last modified time | relevance | path

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

/external/v8/test/cctest/
Dtest-diy-fp.cc41 DiyFp diy_fp1 = DiyFp(3, 0); in TEST()
42 DiyFp diy_fp2 = DiyFp(1, 0); in TEST()
43 DiyFp diff = DiyFp::Minus(diy_fp1, diy_fp2); in TEST()
54 DiyFp diy_fp1 = DiyFp(3, 0); in TEST()
55 DiyFp diy_fp2 = DiyFp(2, 0); in TEST()
56 DiyFp product = DiyFp::Times(diy_fp1, diy_fp2); in TEST()
64 diy_fp1 = DiyFp(V8_2PART_UINT64_C(0x80000000, 00000000), 11); in TEST()
65 diy_fp2 = DiyFp(2, 13); in TEST()
66 product = DiyFp::Times(diy_fp1, diy_fp2); in TEST()
71 diy_fp1 = DiyFp(V8_2PART_UINT64_C(0x80000000, 00000001), 11); in TEST()
[all …]
Dtest-double.cc56 DiyFp diy_fp = Double(ordered).AsDiyFp(); in TEST()
76 DiyFp diy_fp = Double(ordered).AsNormalizedDiyFp(); in TEST()
153 DiyFp boundary_plus; in TEST()
154 DiyFp boundary_minus; in TEST()
155 DiyFp diy_fp = Double(1.5).AsNormalizedDiyFp(); in TEST()
Dtest-strtod.cc377 DiyFp diy_fp) { in CompareBignumToDiyFp()
399 DiyFp lower_boundary; in CheckDouble()
400 DiyFp upper_boundary; in CheckDouble()
/external/v8/src/
Dfast-dtoa.cc362 static bool DigitGen(DiyFp low, in DigitGen()
363 DiyFp w, in DigitGen()
364 DiyFp high, in DigitGen()
383 DiyFp too_low = DiyFp(low.f() - unit, low.e()); in DigitGen()
384 DiyFp too_high = DiyFp(high.f() + unit, high.e()); in DigitGen()
387 DiyFp unsafe_interval = DiyFp::Minus(too_high, too_low); in DigitGen()
395 DiyFp one = DiyFp(static_cast<uint64_t>(1) << -w.e(), w.e()); in DigitGen()
402 BiggestPowerTen(integrals, DiyFp::kSignificandSize - (-one.e()), in DigitGen()
425 return RoundWeed(buffer, *length, DiyFp::Minus(too_high, w).f(), in DigitGen()
452 return RoundWeed(buffer, *length, DiyFp::Minus(too_high, w).f() * unit, in DigitGen()
[all …]
Ddiy-fp.h20 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 …]
Ddouble.h31 explicit Double(DiyFp diy_fp) in Double()
36 DiyFp AsDiyFp() const { in AsDiyFp()
39 return DiyFp(Significand(), Exponent()); in AsDiyFp()
43 DiyFp AsNormalizedDiyFp() const { in AsNormalizedDiyFp()
54 f <<= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
55 e -= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
56 return DiyFp(f, e); in AsNormalizedDiyFp()
123 DiyFp UpperBoundary() const { in UpperBoundary()
125 return DiyFp(Significand() * 2 + 1, Exponent() - 1); in UpperBoundary()
132 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const { in NormalizedBoundaries()
[all …]
Dstrtod.cc134 DiyFp* result, in ReadDiyFp()
139 *result = DiyFp(significand, 0); in ReadDiyFp()
148 *result = DiyFp(significand, exponent); in ReadDiyFp()
210 static DiyFp AdjustmentPowerOfTen(int exponent) { in AdjustmentPowerOfTen()
217 case 1: return DiyFp(V8_2PART_UINT64_C(0xa0000000, 00000000), -60); in AdjustmentPowerOfTen()
218 case 2: return DiyFp(V8_2PART_UINT64_C(0xc8000000, 00000000), -57); in AdjustmentPowerOfTen()
219 case 3: return DiyFp(V8_2PART_UINT64_C(0xfa000000, 00000000), -54); in AdjustmentPowerOfTen()
220 case 4: return DiyFp(V8_2PART_UINT64_C(0x9c400000, 00000000), -50); in AdjustmentPowerOfTen()
221 case 5: return DiyFp(V8_2PART_UINT64_C(0xc3500000, 00000000), -47); in AdjustmentPowerOfTen()
222 case 6: return DiyFp(V8_2PART_UINT64_C(0xf4240000, 00000000), -44); in AdjustmentPowerOfTen()
[all …]
Dcached-powers.cc128 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()
Dcached-powers.h27 DiyFp* power,
36 DiyFp* power,
Ddiy-fp.cc12 void DiyFp::Multiply(const DiyFp& other) { in Multiply()