Searched refs:DiyFp (Results 1 - 25 of 28) sorted by relevance

12

/external/chromium_org/v8/test/cctest/
H A Dtest-diy-fp.cc41 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(
[all...]
H A Dtest-double.cc56 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();
/external/v8/test/cctest/
H A Dtest-diy-fp.cc16 DiyFp diy_fp1 = DiyFp(3, 0);
17 DiyFp diy_fp2 = DiyFp(1, 0);
18 DiyFp diff = DiyFp::Minus(diy_fp1, diy_fp2);
29 DiyFp diy_fp1 = DiyFp(3, 0);
30 DiyFp diy_fp2 = DiyFp(
[all...]
H A Dtest-double.cc30 DiyFp diy_fp = Double(ordered).AsDiyFp();
50 DiyFp diy_fp = Double(ordered).AsNormalizedDiyFp();
142 DiyFp boundary_plus;
143 DiyFp boundary_minus;
144 DiyFp diy_fp = Double(1.5).AsNormalizedDiyFp();
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/
H A Ddiy-fp.h38 // 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 { class in namespace:WTF::double_conversion
46 DiyFp() : f_(0), e_(0) {} function in class:WTF::double_conversion::DiyFp
47 DiyFp(uint64_t f, int e) : f_(f), e_(e) {} function in class:WTF::double_conversion::DiyFp
53 void Subtract(const DiyFp& other) {
62 static DiyFp Minus(const DiyFp& a, const DiyFp& b) {
63 DiyFp resul
[all...]
H A Dcached-powers.h51 DiyFp* power,
60 DiyFp* power,
H A Ddouble.h54 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_minu
[all...]
H A Dfast-dtoa.cc345 // 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
[all...]
H A Dstrtod.cc151 // 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_
[all...]
H A Ddiy-fp.cc37 void DiyFp::Multiply(const DiyFp& other) {
H A Dcached-powers.cc160 DiyFp* power,
163 int kQ = DiyFp::kSignificandSize;
173 *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
178 DiyFp* power,
185 *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
/external/chromium_org/v8/src/
H A Ddiy-fp.h35 // with a uint64 significand and an int exponent. Normalized DiyFp numbers will
38 // DiyFp are not designed to contain special doubles (NaN and Infinity).
39 class DiyFp { class in namespace:v8::internal
43 DiyFp() : f_(0), e_(0) {} function in class:v8::internal::DiyFp
44 DiyFp(uint64_t f, int e) : f_(f), e_(e) {} function in class:v8::internal::DiyFp
50 void Subtract(const DiyFp& other) {
59 static DiyFp Minus(const DiyFp& a, const DiyFp& b) {
60 DiyFp resul
[all...]
H A Dcached-powers.h49 DiyFp* power,
58 DiyFp* power,
H A Ddouble.h54 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);
146 DiyFp UpperBoundary() const {
148 return DiyFp(Significand() * 2 + 1, Exponent() - 1);
155 void NormalizedBoundaries(DiyFp* out_m_minu
[all...]
H A Dfast-dtoa.cc344 // w is a floating-point number (DiyFp), consisting of a significand and an
385 static bool DigitGen(DiyFp low,
386 DiyFp w,
387 DiyFp high,
406 DiyFp too_low = DiyFp(low.f() - unit, low.e());
407 DiyFp too_high = DiyFp(high.f() + unit, high.e());
410 DiyFp unsafe_interval = DiyFp
[all...]
H A Dstrtod.cc151 // 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);
229 // Returns 10^exponent as an exact DiyFp.
231 static DiyFp AdjustmentPowerOfTen(int exponent) {
238 case 1: return DiyFp(V8_2PART_UINT64_C(0xa0000000, 00000000), -60);
239 case 2: return DiyFp(V8_2PART_UINT64_
[all...]
H A Ddiy-fp.cc36 void DiyFp::Multiply(const DiyFp& other) {
H A Dcached-powers.cc147 DiyFp* power,
149 int kQ = DiyFp::kSignificandSize;
161 *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
166 DiyFp* power,
173 *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
/external/v8/src/
H A Ddiy-fp.h35 // with a uint64 significand and an int exponent. Normalized DiyFp numbers will
38 // DiyFp are not designed to contain special doubles (NaN and Infinity).
39 class DiyFp { class in namespace:v8::internal
43 DiyFp() : f_(0), e_(0) {} function in class:v8::internal::DiyFp
44 DiyFp(uint64_t f, int e) : f_(f), e_(e) {} function in class:v8::internal::DiyFp
50 void Subtract(const DiyFp& other) {
59 static DiyFp Minus(const DiyFp& a, const DiyFp& b) {
60 DiyFp resul
[all...]
H A Dcached-powers.h49 DiyFp* power,
58 DiyFp* power,
H A Ddouble.h54 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_minu
[all...]
H A Dfast-dtoa.cc344 // w is a floating-point number (DiyFp), consisting of a significand and an
385 static bool DigitGen(DiyFp low,
386 DiyFp w,
387 DiyFp high,
406 DiyFp too_low = DiyFp(low.f() - unit, low.e());
407 DiyFp too_high = DiyFp(high.f() + unit, high.e());
410 DiyFp unsafe_interval = DiyFp
[all...]
H A Dstrtod.cc150 // Reads a DiyFp from the buffer.
151 // The returned DiyFp is not necessarily normalized.
152 // If remaining_decimals is zero then the returned DiyFp is accurate.
155 DiyFp* result,
160 *result = DiyFp(significand, 0);
169 *result = DiyFp(significand, exponent);
229 // Returns 10^exponent as an exact DiyFp.
231 static DiyFp AdjustmentPowerOfTen(int exponent) {
238 case 1: return DiyFp(V8_2PART_UINT64_C(0xa0000000, 00000000), -60);
239 case 2: return DiyFp(V8_2PART_UINT64_
[all...]
H A Ddiy-fp.cc36 void DiyFp::Multiply(const DiyFp& other) {
H A Dcached-powers.cc147 DiyFp* power,
149 int kQ = DiyFp::kSignificandSize;
161 *power = DiyFp(cached_power.significand, cached_power.binary_exponent);
166 DiyFp* power,
173 *power = DiyFp(cached_power.significand, cached_power.binary_exponent);

Completed in 581 milliseconds

12