/external/chromium_org/v8/test/cctest/ |
test-diy-fp.cc | 41 DiyFp diy_fp1 = DiyFp(3, 0); 42 DiyFp diy_fp2 = DiyFp(1, 0); 43 DiyFp diff = DiyFp::Minus(diy_fp1, diy_fp2); 54 DiyFp diy_fp1 = DiyFp(3, 0); 55 DiyFp diy_fp2 = DiyFp(2, 0) [all...] |
test-double.cc | 56 DiyFp diy_fp = Double(ordered).AsDiyFp(); 76 DiyFp diy_fp = Double(ordered).AsNormalizedDiyFp(); 153 DiyFp boundary_plus; 154 DiyFp boundary_minus; 155 DiyFp diy_fp = Double(1.5).AsNormalizedDiyFp();
|
test-strtod.cc | 377 DiyFp diy_fp) { 399 DiyFp lower_boundary; 400 DiyFp upper_boundary;
|
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/ |
diy-fp.h | 38 // with a uint64 significand and an int exponent. Normalized DiyFp numbers will 41 // DiyFp are not designed to contain special doubles (NaN and Infinity). 42 class DiyFp { 46 DiyFp() : f_(0), e_(0) {} 47 DiyFp(uint64_t f, int e) : f_(f), e_(e) {} 53 void Subtract(const DiyFp& other) { 62 static DiyFp Minus(const DiyFp& a, const DiyFp& b) { 63 DiyFp result = a [all...] |
cached-powers.h | 51 DiyFp* power, 60 DiyFp* power,
|
double.h | 54 explicit Double(DiyFp diy_fp) 59 DiyFp AsDiyFp() const { 62 return DiyFp(Significand(), Exponent()); 66 DiyFp AsNormalizedDiyFp() const { 77 f <<= DiyFp::kSignificandSize - kSignificandSize; 78 e -= DiyFp::kSignificandSize - kSignificandSize; 79 return DiyFp(f, e); 152 DiyFp UpperBoundary() const { 154 return DiyFp(Significand() * 2 + 1, Exponent() - 1); 161 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const [all...] |
fast-dtoa.cc | 345 // w is a floating-point number (DiyFp), consisting of a significand and an 386 static bool DigitGen(DiyFp low, 387 DiyFp w, 388 DiyFp high, 407 DiyFp too_low = DiyFp(low.f() - unit, low.e()); 408 DiyFp too_high = DiyFp(high.f() + unit, high.e()); 411 DiyFp unsafe_interval = DiyFp::Minus(too_high, too_low) [all...] |
strtod.cc | 151 // Reads a DiyFp from the buffer. 152 // The returned DiyFp is not necessarily normalized. 153 // If remaining_decimals is zero then the returned DiyFp is accurate. 156 DiyFp* result, 161 *result = DiyFp(significand, 0); 170 *result = DiyFp(significand, exponent); 228 // Returns 10^exponent as an exact DiyFp. 230 static DiyFp AdjustmentPowerOfTen(int exponent) { 237 case 1: return DiyFp(UINT64_2PART_C(0xa0000000, 00000000), -60); 238 case 2: return DiyFp(UINT64_2PART_C(0xc8000000, 00000000), -57) [all...] |
diy-fp.cc | 37 void DiyFp::Multiply(const DiyFp& other) {
|
cached-powers.cc | 158 DiyFp* power, 163 int kQ = DiyFp::kSignificandSize; 173 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); 178 DiyFp* power, 188 *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
|
/external/chromium_org/v8/src/ |
diy-fp.h | 12 // with a uint64 significand and an int exponent. Normalized DiyFp numbers will 15 // DiyFp are not designed to contain special doubles (NaN and Infinity). 16 class DiyFp { 20 DiyFp() : f_(0), e_(0) {} 21 DiyFp(uint64_t f, int e) : f_(f), e_(e) {} 27 void Subtract(const DiyFp& other) { 36 static DiyFp Minus(const DiyFp& a, const DiyFp& b) { 37 DiyFp result = a [all...] |
cached-powers.h | 27 DiyFp* power, 36 DiyFp* power,
|
double.h | 31 explicit Double(DiyFp diy_fp) 36 DiyFp AsDiyFp() const { 39 return DiyFp(Significand(), Exponent()); 43 DiyFp AsNormalizedDiyFp() const { 54 f <<= DiyFp::kSignificandSize - kSignificandSize; 55 e -= DiyFp::kSignificandSize - kSignificandSize; 56 return DiyFp(f, e); 123 DiyFp UpperBoundary() const { 125 return DiyFp(Significand() * 2 + 1, Exponent() - 1); 132 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const [all...] |
fast-dtoa.cc | 321 // w is a floating-point number (DiyFp), consisting of a significand and an 362 static bool DigitGen(DiyFp low, 363 DiyFp w, 364 DiyFp high, 383 DiyFp too_low = DiyFp(low.f() - unit, low.e()); 384 DiyFp too_high = DiyFp(high.f() + unit, high.e()); 387 DiyFp unsafe_interval = DiyFp::Minus(too_high, too_low) [all...] |
strtod.cc | 130 // Reads a DiyFp from the buffer. 131 // The returned DiyFp is not necessarily normalized. 132 // If remaining_decimals is zero then the returned DiyFp is accurate. 135 DiyFp* result, 140 *result = DiyFp(significand, 0); 149 *result = DiyFp(significand, exponent); 209 // Returns 10^exponent as an exact DiyFp. 211 static DiyFp AdjustmentPowerOfTen(int exponent) { 218 case 1: return DiyFp(V8_2PART_UINT64_C(0xa0000000, 00000000), -60); 219 case 2: return DiyFp(V8_2PART_UINT64_C(0xc8000000, 00000000), -57) [all...] |
diy-fp.cc | 13 void DiyFp::Multiply(const DiyFp& other) {
|
cached-powers.cc | 127 DiyFp* power, 129 int kQ = DiyFp::kSignificandSize; 141 *power = DiyFp(cached_power.significand, cached_power.binary_exponent); 146 DiyFp* power, 153 *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
|