Home
last modified time | relevance | path

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

1234

/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/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/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/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/mingw-w64/mingw-w64-crt/math/DFP/
Dmpdecimal-t1.c208 int64_t significand, exp_part; in dec64_to_mpd() local
213 significand = (in.t2.mantissa | (0x1ULL << 53)) * ((in.t2.sign) ? -1 : 1); in dec64_to_mpd()
216 significand = in.t1.mantissa * ((in.t1.sign) ? -1 : 1); in dec64_to_mpd()
219 dec_to_mpd_conv(ctx, result, significand, exp_part); in dec64_to_mpd()
224 int64_t significand, exp_part; in dec32_to_mpd() local
229 significand = (in.t2.mantissa | (0x1ULL << 23)) * ((in.t2.sign) ? -1 : 1); in dec32_to_mpd()
232 significand = in.t1.mantissa * ((in.t1.sign) ? -1 : 1); in dec32_to_mpd()
235 dec_to_mpd_conv(ctx, result, significand, exp_part); in dec32_to_mpd()
240 uint32_t exp_part, significand; in mpd_to_dec32() local
255 significand = bases_data[0] | (uint32_t)bases_data[1] << 16 ; in mpd_to_dec32()
[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/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/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/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/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/boost/boost/math/special_functions/detail/
Dfp_traits.hpp184 BOOST_STATIC_CONSTANT(uint32_t, significand = 0x007fffff);
203 BOOST_STATIC_CONSTANT(uint32_t, significand = 0x000fffff);
239 static const uint64_t significand member
263 BOOST_STATIC_CONSTANT(uint32_t, significand = 0x000fffff);
299 static const uint64_t significand member
326 BOOST_STATIC_CONSTANT(uint32_t, significand = 0x00007fff);
377 BOOST_STATIC_CONSTANT(uint32_t, significand = 0x000fffff);
422 BOOST_STATIC_CONSTANT(uint32_t, significand = 0x00007fff);
458 BOOST_STATIC_CONSTANT(uint32_t, significand = 0x0000ffff);
/third_party/boost/boost/math/special_functions/
Dfpclassify.hpp221 a &= traits::exponent | traits::flag | traits::significand; in BOOST_NO_MACRO_EXPAND()
222 BOOST_MATH_INSTRUMENT_VARIABLE((traits::exponent | traits::flag | traits::significand)); in BOOST_NO_MACRO_EXPAND()
225 if(a <= traits::significand) { in BOOST_NO_MACRO_EXPAND()
234 a &= traits::significand; in BOOST_NO_MACRO_EXPAND()
249 a &= traits::exponent | traits::flag | traits::significand; in BOOST_NO_MACRO_EXPAND()
251 if(a <= traits::significand) { in BOOST_NO_MACRO_EXPAND()
260 a &= traits::significand; in BOOST_NO_MACRO_EXPAND()
487 a &= traits::exponent | traits::significand; in isinf_impl()
498 a &= traits::exponent | traits::significand; in isinf_impl()
582 a &= traits::exponent | traits::significand; in isnan_impl()
[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/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 …]
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
Dtype_half.inl83 // Nan -- preserve sign and significand bits
117 // the sign, s, the exponent, e, and the significand, m.
159 // Rounding may cause the significand to overflow and make
190 // significand of f, with one exception: If the 10
193 // bit in the significand.
218 m = 0; // overflow in significand,
/third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/
Dnumber_test.cpp121 char significand = std::get<0>(GetParam()); in TEST_P() local
122 if (significand != '\0') in TEST_P()
123 str.push_back(significand); in TEST_P()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/preprocessor_tests/
Dnumber_test.cpp121 char significand = std::get<0>(GetParam()); in TEST_P() local
122 if (significand != '\0') in TEST_P()
123 str.push_back(significand); in TEST_P()

1234