Home
last modified time | relevance | path

Searched refs:significand (Results 1 – 25 of 112) sorted by relevance

12345

/third_party/node/deps/icu-small/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp51 static int NormalizedExponent(uint64_t significand, int exponent) { in NormalizedExponent() argument
52 DOUBLE_CONVERSION_ASSERT(significand != 0); in NormalizedExponent()
53 while ((significand & Double::kHiddenBit) == 0) { in NormalizedExponent()
54 significand = significand << 1; in NormalizedExponent()
66 static void InitialScaledStartValues(uint64_t significand,
107 uint64_t significand; in BignumDtoa() local
113 significand = Single(f).Significand(); in BignumDtoa()
117 significand = Double(v).Significand(); in BignumDtoa()
124 bool is_even = (significand & 1) == 0; in BignumDtoa()
125 int normalized_exponent = NormalizedExponent(significand, exponent); in BignumDtoa()
[all …]
Ddouble-conversion-diy-fp.h60 DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {} in DiyFp() argument
112 uint64_t significand = f_; in Normalize() local
118 while ((significand & k10MSBits) == 0) { in Normalize()
119 significand <<= 10; in Normalize()
122 while ((significand & kUint64MSB) == 0) { in Normalize()
123 significand <<= 1; in Normalize()
126 f_ = significand; in Normalize()
Ddouble-conversion-ieee.h139 uint64_t significand = d64 & kSignificandMask; in Significand() local
141 return significand + kHiddenBit; in Significand()
143 return significand; in Significand()
258 uint64_t significand = diy_fp.f(); in DiyFpToUint64() local
260 while (significand > kHiddenBit + kSignificandMask) { in DiyFpToUint64()
261 significand >>= 1; in DiyFpToUint64()
270 while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
271 significand <<= 1; in DiyFpToUint64()
275 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
280 return (significand & kSignificandMask) | in DiyFpToUint64()
[all …]
/third_party/icu/icu4c/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp51 static int NormalizedExponent(uint64_t significand, int exponent) { in NormalizedExponent() argument
52 DOUBLE_CONVERSION_ASSERT(significand != 0); in NormalizedExponent()
53 while ((significand & Double::kHiddenBit) == 0) { in NormalizedExponent()
54 significand = significand << 1; in NormalizedExponent()
66 static void InitialScaledStartValues(uint64_t significand,
107 uint64_t significand; in BignumDtoa() local
113 significand = Single(f).Significand(); in BignumDtoa()
117 significand = Double(v).Significand(); in BignumDtoa()
124 bool is_even = (significand & 1) == 0; in BignumDtoa()
125 int normalized_exponent = NormalizedExponent(significand, exponent); in BignumDtoa()
[all …]
Ddouble-conversion-diy-fp.h60 DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {} in DiyFp() argument
112 uint64_t significand = f_; in Normalize() local
118 while ((significand & k10MSBits) == 0) { in Normalize()
119 significand <<= 10; in Normalize()
122 while ((significand & kUint64MSB) == 0) { in Normalize()
123 significand <<= 1; in Normalize()
126 f_ = significand; in Normalize()
Ddouble-conversion-ieee.h139 uint64_t significand = d64 & kSignificandMask; in Significand() local
141 return significand + kHiddenBit; in Significand()
143 return significand; in Significand()
258 uint64_t significand = diy_fp.f(); in DiyFpToUint64() local
260 while (significand > kHiddenBit + kSignificandMask) { in DiyFpToUint64()
261 significand >>= 1; in DiyFpToUint64()
270 while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
271 significand <<= 1; in DiyFpToUint64()
275 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
280 return (significand & kSignificandMask) | in DiyFpToUint64()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp51 static int NormalizedExponent(uint64_t significand, int exponent) { in NormalizedExponent() argument
52 DOUBLE_CONVERSION_ASSERT(significand != 0); in NormalizedExponent()
53 while ((significand & Double::kHiddenBit) == 0) { in NormalizedExponent()
54 significand = significand << 1; in NormalizedExponent()
66 static void InitialScaledStartValues(uint64_t significand,
107 uint64_t significand; in BignumDtoa() local
113 significand = Single(f).Significand(); in BignumDtoa()
117 significand = Double(v).Significand(); in BignumDtoa()
124 bool is_even = (significand & 1) == 0; in BignumDtoa()
125 int normalized_exponent = NormalizedExponent(significand, exponent); in BignumDtoa()
[all …]
Ddouble-conversion-diy-fp.h60 DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {} in DiyFp() argument
112 uint64_t significand = f_; in Normalize() local
118 while ((significand & k10MSBits) == 0) { in Normalize()
119 significand <<= 10; in Normalize()
122 while ((significand & kUint64MSB) == 0) { in Normalize()
123 significand <<= 1; in Normalize()
126 f_ = significand; in Normalize()
Ddouble-conversion-ieee.h139 uint64_t significand = d64 & kSignificandMask; in Significand() local
141 return significand + kHiddenBit; in Significand()
143 return significand; in Significand()
258 uint64_t significand = diy_fp.f(); in DiyFpToUint64() local
260 while (significand > kHiddenBit + kSignificandMask) { in DiyFpToUint64()
261 significand >>= 1; in DiyFpToUint64()
270 while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
271 significand <<= 1; in DiyFpToUint64()
275 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
280 return (significand & kSignificandMask) | in DiyFpToUint64()
[all …]
/third_party/icu/vendor/double-conversion/upstream/double-conversion/
Dbignum-dtoa.cc37 static int NormalizedExponent(uint64_t significand, int exponent) { in NormalizedExponent() argument
38 DOUBLE_CONVERSION_ASSERT(significand != 0); in NormalizedExponent()
39 while ((significand & Double::kHiddenBit) == 0) { in NormalizedExponent()
40 significand = significand << 1; in NormalizedExponent()
52 static void InitialScaledStartValues(uint64_t significand,
93 uint64_t significand; in BignumDtoa() local
99 significand = Single(f).Significand(); in BignumDtoa()
103 significand = Double(v).Significand(); in BignumDtoa()
110 bool is_even = (significand & 1) == 0; in BignumDtoa()
111 int normalized_exponent = NormalizedExponent(significand, exponent); in BignumDtoa()
[all …]
Ddiy-fp.h46 DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {} in DiyFp() argument
98 uint64_t significand = f_; in Normalize() local
104 while ((significand & k10MSBits) == 0) { in Normalize()
105 significand <<= 10; in Normalize()
108 while ((significand & kUint64MSB) == 0) { in Normalize()
109 significand <<= 1; in Normalize()
112 f_ = significand; in Normalize()
Dieee.h125 uint64_t significand = d64 & kSignificandMask; in Significand() local
127 return significand + kHiddenBit; in Significand()
129 return significand; in Significand()
244 uint64_t significand = diy_fp.f(); in DiyFpToUint64() local
246 while (significand > kHiddenBit + kSignificandMask) { in DiyFpToUint64()
247 significand >>= 1; in DiyFpToUint64()
256 while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
257 significand <<= 1; in DiyFpToUint64()
261 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
266 return (significand & kSignificandMask) | in DiyFpToUint64()
[all …]
Dfixed-dtoa.cc316 uint64_t significand = Double(v).Significand(); in FastFixedDtoa() local
341 uint64_t dividend = significand; in FastFixedDtoa()
368 significand <<= exponent; in FastFixedDtoa()
369 FillDigits64(significand, buffer, length); in FastFixedDtoa()
373 uint64_t integrals = significand >> -exponent; in FastFixedDtoa()
374 uint64_t fractionals = significand - (integrals << -exponent); in FastFixedDtoa()
392 FillFractionals(significand, exponent, fractional_count, in FastFixedDtoa()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Ddouble-conversion-bignum-dtoa.cpp51 static int NormalizedExponent(uint64_t significand, int exponent) { in NormalizedExponent() argument
52 ASSERT(significand != 0); in NormalizedExponent()
53 while ((significand & Double::kHiddenBit) == 0) { in NormalizedExponent()
54 significand = significand << 1; in NormalizedExponent()
66 static void InitialScaledStartValues(uint64_t significand,
107 uint64_t significand; in BignumDtoa() local
113 significand = Single(f).Significand(); in BignumDtoa()
117 significand = Double(v).Significand(); in BignumDtoa()
124 bool is_even = (significand & 1) == 0; in BignumDtoa()
125 int normalized_exponent = NormalizedExponent(significand, exponent); in BignumDtoa()
[all …]
Ddouble-conversion-diy-fp.h59 DiyFp(uint64_t significand, int exponent) : f_(significand), e_(exponent) {} in DiyFp() argument
93 uint64_t significand = f_; in Normalize() local
99 while ((significand & k10MSBits) == 0) { in Normalize()
100 significand <<= 10; in Normalize()
103 while ((significand & kUint64MSB) == 0) { in Normalize()
104 significand <<= 1; in Normalize()
107 f_ = significand; in Normalize()
Ddouble-conversion-ieee.h136 uint64_t significand = d64 & kSignificandMask; in Significand() local
138 return significand + kHiddenBit; in Significand()
140 return significand; in Significand()
248 uint64_t significand = diy_fp.f(); in DiyFpToUint64() local
250 while (significand > kHiddenBit + kSignificandMask) { in DiyFpToUint64()
251 significand >>= 1; in DiyFpToUint64()
260 while (exponent > kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
261 significand <<= 1; in DiyFpToUint64()
265 if (exponent == kDenormalExponent && (significand & kHiddenBit) == 0) { in DiyFpToUint64()
270 return (significand & kSignificandMask) | in DiyFpToUint64()
[all …]
/third_party/glslang/SPIRV/
Dhex_float.h372 uint_type significand = getSignificandBits();
374 significand = static_cast<uint_type>(significand << 1);
376 significand &= fraction_encode_mask;
377 return significand;
396 bool negative, int_type exponent, uint_type significand,
398 bool significand_is_zero = significand == 0;
404 significand |= first_exponent_bit;
405 significand = static_cast<uint_type>(significand >> 1);
409 significand = static_cast<uint_type>(significand >> 1);
414 if (significand == 0 && !significand_is_zero && round_denorm_up) {
[all …]
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/
Dhex_float.h360 uint_type significand = getSignificandBits();
362 significand = static_cast<uint_type>(significand << 1);
364 significand &= fraction_encode_mask;
365 return significand;
384 bool negative, int_type exponent, uint_type significand,
386 bool significand_is_zero = significand == 0;
392 significand |= first_exponent_bit;
393 significand = static_cast<uint_type>(significand >> 1);
397 significand = static_cast<uint_type>(significand >> 1);
402 if (significand == 0 && !significand_is_zero && round_denorm_up) {
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
Dhex_float.h404 uint_type significand = getSignificandBits();
406 significand = static_cast<uint_type>(significand << 1);
408 significand &= fraction_encode_mask;
409 return significand;
428 bool negative, int_type exponent, uint_type significand,
430 bool significand_is_zero = significand == 0;
436 significand |= first_exponent_bit;
437 significand = static_cast<uint_type>(significand >> 1);
441 significand = static_cast<uint_type>(significand >> 1);
446 if (significand == 0 && !significand_is_zero && round_denorm_up) {
[all …]
/third_party/skia/third_party/externals/spirv-tools/source/util/
Dhex_float.h404 uint_type significand = getSignificandBits();
406 significand = static_cast<uint_type>(significand << 1);
408 significand &= fraction_encode_mask;
409 return significand;
428 bool negative, int_type exponent, uint_type significand,
430 bool significand_is_zero = significand == 0;
436 significand |= first_exponent_bit;
437 significand = static_cast<uint_type>(significand >> 1);
441 significand = static_cast<uint_type>(significand >> 1);
446 if (significand == 0 && !significand_is_zero && round_denorm_up) {
[all …]
/third_party/spirv-tools/source/util/
Dhex_float.h405 uint_type significand = getSignificandBits();
407 significand = static_cast<uint_type>(significand << 1);
409 significand &= fraction_encode_mask;
410 return significand;
429 bool negative, int_type exponent, uint_type significand,
431 bool significand_is_zero = significand == 0;
437 significand |= first_exponent_bit;
438 significand = static_cast<uint_type>(significand >> 1);
442 significand = static_cast<uint_type>(significand >> 1);
447 if (significand == 0 && !significand_is_zero && round_denorm_up) {
[all …]
/third_party/optimized-routines/math/test/rtest/
Ddotest.c138 mpfr_t significand; in get_mpfr_d() local
164 mpfr_init2(significand, MPFR_PREC); in get_mpfr_d()
165 mpfr_set(significand, x, GMP_RNDN); in get_mpfr_d()
166 exp = mpfr_get_exp(significand); in get_mpfr_d()
167 mpfr_set_exp(significand, 0); in get_mpfr_d()
176 mpfr_clear(significand); in get_mpfr_d()
184 mpfr_div_2si(significand, x, exp - 21, GMP_RNDN); in get_mpfr_d()
185 mpfr_abs(significand, significand, GMP_RNDN); in get_mpfr_d()
186 mantfield = mpfr_get_ui(significand, GMP_RNDZ); in get_mpfr_d()
188 mpfr_sub_ui(significand, significand, mantfield, GMP_RNDN); in get_mpfr_d()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/math/
Dsignificand.c33 double d = significand(0.0); in significand_0100()
44 double d = significand(1.2); in significand_0200()
55 double d = significand(12.25); in significand_0300()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dpow10_helper_test.cc30 uint64_t significand; // Raw bits of the expected value member
112 std::ldexp(test_case.significand, test_case.radix)) in TEST()
115 std::ldexp(test_case.significand, test_case.radix)); in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DAPFloat.cpp712 significand.parts = new integerPart[count]; in initialize()
717 delete [] significand.parts; in freeSignificand()
745 integerPart *significand = significandParts(); in makeNaN() local
750 APInt::tcSet(significand, 0, numParts); in makeNaN()
752 APInt::tcAssign(significand, fill->getRawData(), in makeNaN()
759 significand[part] &= ((1ULL << bitsToPreserve) - 1); in makeNaN()
761 significand[part] = 0; in makeNaN()
768 APInt::tcClearBit(significand, QNaNBit); in makeNaN()
773 if (APInt::tcIsZero(significand, numParts)) in makeNaN()
774 APInt::tcSetBit(significand, QNaNBit - 1); in makeNaN()
[all …]

12345