Home
last modified time | relevance | path

Searched refs:maxExponent (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/external/llvm-project/libc/utils/FPUtil/
DLongDoubleBitsX86.h35 static constexpr int maxExponent = 0x7FFF;
43 ((UIntType(maxExponent) - 1) << (MantissaWidth<long double>::value + 1)) |
71 return exponent == maxExponent && mantissa == 0 && implicitBit == 1;
75 if (exponent == maxExponent) {
84 return (exponent == maxExponent) || (exponent != 0 && implicitBit == 0);
124 bits.exponent = maxExponent;
131 bits.exponent = maxExponent;
139 bits.exponent = maxExponent;
DFPBits.h74 static constexpr int maxExponent = (1 << ExponentWidth<T>::value) - 1;
82 ((UIntType(maxExponent) - 1) << MantissaWidth<T>::value) | maxSubnormal;
98 bool isInf() const { return mantissa == 0 && exponent == maxExponent; }
100 bool isNaN() const { return exponent == maxExponent && mantissa != 0; }
102 bool isInfOrNaN() const { return exponent == maxExponent; }
130 bits.exponent = maxExponent;
136 bits.exponent = maxExponent;
143 bits.exponent = maxExponent;
DHypot.h209 if (out_exp >= FPBits_t::maxExponent) {
255 if (out_exp >= FPBits_t::maxExponent) {
/external/compiler-rt/lib/builtins/
Ddivsf3.c27 const unsigned int aExponent = toRep(a) >> significandBits & maxExponent; in ARM_EABI_FNALIAS()
28 const unsigned int bExponent = toRep(b) >> significandBits & maxExponent; in ARM_EABI_FNALIAS()
36 if (aExponent-1U >= maxExponent-1U || bExponent-1U >= maxExponent-1U) { in ARM_EABI_FNALIAS()
147 if (writtenExponent >= maxExponent) { in ARM_EABI_FNALIAS()
Ddivdf3.c27 const unsigned int aExponent = toRep(a) >> significandBits & maxExponent; in ARM_EABI_FNALIAS()
28 const unsigned int bExponent = toRep(b) >> significandBits & maxExponent; in ARM_EABI_FNALIAS()
36 if (aExponent-1U >= maxExponent-1U || bExponent-1U >= maxExponent-1U) { in ARM_EABI_FNALIAS()
162 if (writtenExponent >= maxExponent) { in ARM_EABI_FNALIAS()
Ddivtf3.c25 const unsigned int aExponent = toRep(a) >> significandBits & maxExponent; in __divtf3()
26 const unsigned int bExponent = toRep(b) >> significandBits & maxExponent; in __divtf3()
34 if (aExponent-1U >= maxExponent-1U || bExponent-1U >= maxExponent-1U) { in __divtf3()
180 if (writtenExponent >= maxExponent) { in __divtf3()
Dfp_mul_impl.inc18 const unsigned int aExponent = toRep(a) >> significandBits & maxExponent;
19 const unsigned int bExponent = toRep(b) >> significandBits & maxExponent;
27 if (aExponent-1U >= maxExponent-1U || bExponent-1U >= maxExponent-1U) {
85 if (productExponent >= maxExponent) return fromRep(infRep | productSign);
Dfp_add_impl.inc60 int aExponent = aRep >> significandBits & maxExponent;
61 int bExponent = bRep >> significandBits & maxExponent;
118 if (aExponent >= maxExponent) return fromRep(infRep | resultSign);
/external/llvm-project/flang/include/flang/Evaluate/
Dreal.h47 using Details::maxExponent;
75 return Exponent() == maxExponent && !GetSignificand().IsZero(); in IsNotANumber()
78 return Exponent() == maxExponent && in IsQuietNaN()
85 return Exponent() == maxExponent && GetSignificand().IsZero(); in IsInfinite()
126 if (Exponent() == maxExponent) { in EXPONENT()
141 huge.Normalize(false, maxExponent - 1, Fraction::MASKR(binaryPrecision)); in HUGE()
153 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias};
165 return {Word{maxExponent} in NotANumber()
172 Word infinity{maxExponent}; in Infinity()
296 if (exponent > 0 && exponent < maxExponent) { in GetFraction()
/external/llvm-project/flang/include/flang/Decimal/
Dbinary-floating-point.h35 using Details::maxExponent;
82 return BiasedExponent() == maxExponent && Significand() != 0; in IsNaN()
85 return BiasedExponent() == maxExponent && Significand() == 0; in IsInfinite()
88 return BiasedExponent() == maxExponent - 1 && in IsMaximalFiniteMagnitude()
/external/llvm-project/libc/test/src/math/
DLdExpTest.h63 NormalFloat x(FPBits::maxExponent - 10, NormalFloat::one + 0xF00BA, 0); in testOverflow()
119 int exp = -FPBits::maxExponent - 5; in testNormalOperation()
127 result = func(x, -FPBits::maxExponent - int(mantissaWidth) - 5); in testNormalOperation()
133 exp = FPBits::maxExponent + 5; in testNormalOperation()
137 exp = FPBits::maxExponent + 15; in testNormalOperation()
/external/llvm-project/compiler-rt/lib/builtins/
Dfp_mul_impl.inc17 const unsigned int aExponent = toRep(a) >> significandBits & maxExponent;
18 const unsigned int bExponent = toRep(b) >> significandBits & maxExponent;
26 if (aExponent - 1U >= maxExponent - 1U ||
27 bExponent - 1U >= maxExponent - 1U) {
94 if (productExponent >= maxExponent)
Dfp_add_impl.inc68 int aExponent = aRep >> significandBits & maxExponent;
69 int bExponent = bRep >> significandBits & maxExponent;
129 if (aExponent >= maxExponent)
Dfp_lib.h212 #define maxExponent ((1 << exponentBits) - 1) macro
213 #define exponentBias (maxExponent >> 1)
280 if (exp == maxExponent) { in __compiler_rt_logbX()
/external/llvm-project/flang/include/flang/Common/
Dreal.h123 static constexpr int maxExponent{(1 << exponentBits) - 1};
124 static constexpr int exponentBias{maxExponent / 2};
/external/guava/guava-tests/test/com/google/common/math/
DMathBenchmarking.java136 static double randomDouble(int maxExponent) { in randomDouble() argument
138 result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1)); in randomDouble()
/external/guava/android/guava-tests/test/com/google/common/math/
DMathBenchmarking.java136 static double randomDouble(int maxExponent) { in randomDouble() argument
138 result = Math.scalb(result, RANDOM_SOURCE.nextInt(maxExponent + 1)); in randomDouble()
/external/python/cpython3/Lib/test/decimaltestdata/
Dexp.decTest28 maxExponent: 384
252 maxExponent: 999999
388 maxExponent: 384
413 maxExponent: 999
421 maxExponent: 384
468 maxExponent: 1000000
471 maxExponent: 999999
474 maxExponent: 999999
477 maxExponent: 999999
482 maxExponent: 384
[all …]
Dln.decTest25 maxExponent: 384
212 maxExponent: 384
234 maxExponent: 384
409 maxExponent: 384
536 maxExponent: 384
546 maxExponent: 999
557 maxExponent: 384
591 maxExponent: 1000000
594 maxExponent: 999999
597 maxExponent: 999999
[all …]
Dlog10.decTest28 maxExponent: 384
270 maxExponent: 384
509 maxExponent: 384
535 maxExponent: 1000000
538 maxExponent: 999999
541 maxExponent: 999999
544 maxExponent: 999999
/external/python/cpython2/Lib/test/decimaltestdata/
Dexp.decTest28 maxExponent: 384
252 maxExponent: 999999
388 maxExponent: 384
413 maxExponent: 999
421 maxExponent: 384
468 maxExponent: 1000000
471 maxExponent: 999999
474 maxExponent: 999999
477 maxExponent: 999999
482 maxExponent: 384
[all …]
Dln.decTest25 maxExponent: 384
212 maxExponent: 384
234 maxExponent: 384
409 maxExponent: 384
536 maxExponent: 384
546 maxExponent: 999
557 maxExponent: 384
591 maxExponent: 1000000
594 maxExponent: 999999
597 maxExponent: 999999
[all …]
Dlog10.decTest28 maxExponent: 384
270 maxExponent: 384
509 maxExponent: 384
535 maxExponent: 1000000
538 maxExponent: 999999
541 maxExponent: 999999
544 maxExponent: 999999
/external/skia/tests/
DWangsFormulaTest.cpp104 int maxExponent = 30) { in for_random_beziers() argument
107 for (int i = -10; i <= maxExponent; ++i) { in for_random_beziers()
350 constexpr int maxExponent = 15; in DEF_TEST() local
393 }, maxExponent); in DEF_TEST()
414 constexpr int maxExponent = 24; in DEF_TEST() local
471 maxExponent); in DEF_TEST()
/external/llvm-project/flang/unittests/Evaluate/
Dreal.cpp96 std::uint64_t maxExponent{(std::uint64_t{1} << exponentBits) - 1}; in basicTests() local
97 MATCH(nan.Exponent(), maxExponent)(desc); in basicTests()
98 R inf{Word{maxExponent}.SHIFTL(significandBits)}; in basicTests()
109 R negInf{Word{maxExponent}.SHIFTL(significandBits).IOR(Word::MASKL(1))}; in basicTests()
141 if (j > (maxExponent / 2)) { in basicTests()
178 if (j > (maxExponent / 2)) { in basicTests()

12345678910>>...13