/dports/devel/fp16/FP16-4dfe081cf6bcd15db339cf2680b9281b8451eeb3/test/ |
H A D | alt-to-fp32x2-psimd.cc | 10 const uint32_t exponentBias = 15; in TEST() local 14 (uint16_t) (h + ((e + exponentBias) << 10) + 0), in TEST() 15 (uint16_t) (h + ((e + exponentBias) << 10) + 1), in TEST() 16 (uint16_t) (h + ((e + exponentBias) << 10) + 2), in TEST() 17 (uint16_t) (h + ((e + exponentBias) << 10) + 3), in TEST() 18 (uint16_t) (h + ((e + exponentBias) << 10) + 4), in TEST() 19 (uint16_t) (h + ((e + exponentBias) << 10) + 5), in TEST() 20 (uint16_t) (h + ((e + exponentBias) << 10) + 6), in TEST() 21 (uint16_t) (h + ((e + exponentBias) << 10) + 7) in TEST() 71 const uint32_t exponentBias = 15; in TEST() local [all …]
|
H A D | alt-to-fp32-psimd.cc | 10 const uint32_t exponentBias = 15; in TEST() local 14 (uint16_t) (h + ((e + exponentBias) << 10) + 0), in TEST() 15 (uint16_t) (h + ((e + exponentBias) << 10) + 1), in TEST() 16 (uint16_t) (h + ((e + exponentBias) << 10) + 2), in TEST() 17 (uint16_t) (h + ((e + exponentBias) << 10) + 3), in TEST() 46 const uint32_t exponentBias = 15; in TEST() local 50 (uint16_t) (h + ((e + exponentBias) << 10) + 0x8000), in TEST() 51 (uint16_t) (h + ((e + exponentBias) << 10) + 0x8001), in TEST() 52 (uint16_t) (h + ((e + exponentBias) << 10) + 0x8002), in TEST() 53 (uint16_t) (h + ((e + exponentBias) << 10) + 0x8003), in TEST()
|
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/thirdparty/fp16/test/ |
H A D | alt-to-fp32x2-psimd.cc | 10 const uint32_t exponentBias = 15; in TEST() local 14 (uint16_t) (h + ((e + exponentBias) << 10) + 0), in TEST() 15 (uint16_t) (h + ((e + exponentBias) << 10) + 1), in TEST() 16 (uint16_t) (h + ((e + exponentBias) << 10) + 2), in TEST() 17 (uint16_t) (h + ((e + exponentBias) << 10) + 3), in TEST() 18 (uint16_t) (h + ((e + exponentBias) << 10) + 4), in TEST() 19 (uint16_t) (h + ((e + exponentBias) << 10) + 5), in TEST() 20 (uint16_t) (h + ((e + exponentBias) << 10) + 6), in TEST() 21 (uint16_t) (h + ((e + exponentBias) << 10) + 7) in TEST() 71 const uint32_t exponentBias = 15; in TEST() local [all …]
|
H A D | alt-to-fp32-psimd.cc | 10 const uint32_t exponentBias = 15; in TEST() local 14 (uint16_t) (h + ((e + exponentBias) << 10) + 0), in TEST() 15 (uint16_t) (h + ((e + exponentBias) << 10) + 1), in TEST() 16 (uint16_t) (h + ((e + exponentBias) << 10) + 2), in TEST() 17 (uint16_t) (h + ((e + exponentBias) << 10) + 3), in TEST() 46 const uint32_t exponentBias = 15; in TEST() local 50 (uint16_t) (h + ((e + exponentBias) << 10) + 0x8000), in TEST() 51 (uint16_t) (h + ((e + exponentBias) << 10) + 0x8001), in TEST() 52 (uint16_t) (h + ((e + exponentBias) << 10) + 0x8002), in TEST() 53 (uint16_t) (h + ((e + exponentBias) << 10) + 0x8003), in TEST()
|
/dports/devel/f18/f18-1688bef/lib/evaluate/ |
H A D | real.h | 56 static constexpr int exponentBias{maxExponent / 2}; 157 (exponentBias - 1) * ScaledLogBaseTenOfTwo / 1000000000000)}; 158 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias}; 159 static constexpr int MINEXPONENT{1 - exponentBias}; 198 int exponent{exponentBias + absN.bits - leadz - 1}; 224 if (exponent < exponentBias) { // |x| < 1.0 in AINT() 254 } else if (exponent < exponentBias) { // |x| < 1.0 -> 0 in ToInteger() 306 int exponent{exponentBias + x.UnbiasedExponent()}; 352 int exponent{Exponent() - exponentBias}; in UnbiasedExponent() 380 exponent += exponentBias - yExponent; in CombineExponents() [all …]
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/libc/utils/FPUtil/ |
H A D | FloatProperties.h | 33 static constexpr uint32_t exponentBias = 127; 54 static constexpr uint32_t exponentBias = 1023; 81 static constexpr uint32_t exponentBias = 82 FloatProperties<double>::exponentBias; 101 static constexpr uint32_t exponentBias = 16383; 119 static constexpr uint32_t exponentBias = 16383;
|
H A D | NormalFloat.h | 92 int biasedExponent = exponent + FPBits<T>::exponentBias; in T() 102 constexpr int subnormalExponent = -FPBits<T>::exponentBias + 1; in T() 135 result.setUnbiasedExponent(exponent + FPBits<T>::exponentBias); in T() 156 exponent = 1 - FPBits<T>::exponentBias - shift; in initFromBits() 158 exponent = bits.getUnbiasedExponent() - FPBits<T>::exponentBias; in initFromBits() 208 int biasedExponent = exponent + FPBits<long double>::exponentBias; 218 constexpr int subnormalExponent = -FPBits<long double>::exponentBias + 1;
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libc/src/__support/FPUtil/ |
H A D | FloatProperties.h | 33 static constexpr uint32_t exponentBias = 127; 54 static constexpr uint32_t exponentBias = 1023; 81 static constexpr uint32_t exponentBias = 82 FloatProperties<double>::exponentBias; 101 static constexpr uint32_t exponentBias = 16383; 119 static constexpr uint32_t exponentBias = 16383;
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/libc/utils/FPUtil/ |
H A D | FloatProperties.h | 33 static constexpr uint32_t exponentBias = 127; 54 static constexpr uint32_t exponentBias = 1023; 81 static constexpr uint32_t exponentBias = 82 FloatProperties<double>::exponentBias; 101 static constexpr uint32_t exponentBias = 16383; 119 static constexpr uint32_t exponentBias = 16383;
|
/dports/devel/llvm13/llvm-project-13.0.1.src/libc/utils/FPUtil/ |
H A D | FloatProperties.h | 33 static constexpr uint32_t exponentBias = 127; 54 static constexpr uint32_t exponentBias = 1023; 81 static constexpr uint32_t exponentBias = 82 FloatProperties<double>::exponentBias; 101 static constexpr uint32_t exponentBias = 16383; 119 static constexpr uint32_t exponentBias = 16383;
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/libc/test/src/math/ |
H A D | LdExpTest.h | 73 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnNormal() 85 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnSubnormal() 88 T x = NormalFloat(-FPBits::exponentBias, mantissa, 0); in testUnderflowToZeroOnSubnormal() 100 NormalFloat(-FPBits::exponentBias, mantissa, 0), in testNormalOperation() 101 NormalFloat(-FPBits::exponentBias, mantissa, 1)}; in testNormalOperation() 112 T x = NormalFloat(-FPBits::exponentBias + 1, 2 * NormalFloat::one - 1, 0); in testNormalOperation() 118 x = NormalFloat(FPBits::exponentBias, NormalFloat::one, 0); in testNormalOperation() 132 x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0); in testNormalOperation()
|
/dports/devel/llvm12/llvm-project-12.0.1.src/libc/test/src/math/ |
H A D | LdExpTest.h | 73 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnNormal() 85 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnSubnormal() 88 T x = NormalFloat(-FPBits::exponentBias, mantissa, 0); in testUnderflowToZeroOnSubnormal() 100 NormalFloat(-FPBits::exponentBias, mantissa, 0), in testNormalOperation() 101 NormalFloat(-FPBits::exponentBias, mantissa, 1)}; in testNormalOperation() 112 T x = NormalFloat(-FPBits::exponentBias + 1, 2 * NormalFloat::one - 1, 0); in testNormalOperation() 118 x = NormalFloat(FPBits::exponentBias, NormalFloat::one, 0); in testNormalOperation() 132 x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0); in testNormalOperation()
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libc/test/src/math/ |
H A D | LdExpTest.h | 73 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnNormal() 85 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnSubnormal() 88 T x = NormalFloat(-FPBits::exponentBias, mantissa, 0); in testUnderflowToZeroOnSubnormal() 100 NormalFloat(-FPBits::exponentBias, mantissa, 0), in testNormalOperation() 101 NormalFloat(-FPBits::exponentBias, mantissa, 1)}; in testNormalOperation() 112 T x = NormalFloat(-FPBits::exponentBias + 1, 2 * NormalFloat::one - 1, 0); in testNormalOperation() 118 x = NormalFloat(FPBits::exponentBias, NormalFloat::one, 0); in testNormalOperation() 132 x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0); in testNormalOperation()
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/libc/test/src/math/ |
H A D | LdExpTest.h | 73 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnNormal() 85 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnSubnormal() 88 T x = NormalFloat(-FPBits::exponentBias, mantissa, 0); in testUnderflowToZeroOnSubnormal() 100 NormalFloat(-FPBits::exponentBias, mantissa, 0), in testNormalOperation() 101 NormalFloat(-FPBits::exponentBias, mantissa, 1)}; in testNormalOperation() 112 T x = NormalFloat(-FPBits::exponentBias + 1, 2 * NormalFloat::one - 1, 0); in testNormalOperation() 118 x = NormalFloat(FPBits::exponentBias, NormalFloat::one, 0); in testNormalOperation() 132 x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0); in testNormalOperation()
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/libc/test/src/math/ |
H A D | LdExpTest.h | 73 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnNormal() 85 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnSubnormal() 88 T x = NormalFloat(-FPBits::exponentBias, mantissa, 0); in testUnderflowToZeroOnSubnormal() 100 NormalFloat(-FPBits::exponentBias, mantissa, 0), in testNormalOperation() 101 NormalFloat(-FPBits::exponentBias, mantissa, 1)}; in testNormalOperation() 112 T x = NormalFloat(-FPBits::exponentBias + 1, 2 * NormalFloat::one - 1, 0); in testNormalOperation() 118 x = NormalFloat(FPBits::exponentBias, NormalFloat::one, 0); in testNormalOperation() 132 x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0); in testNormalOperation()
|
/dports/devel/llvm13/llvm-project-13.0.1.src/libc/test/src/math/ |
H A D | LdExpTest.h | 73 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnNormal() 85 int32_t baseExponent = FPBits::exponentBias + mantissaWidth; in testUnderflowToZeroOnSubnormal() 88 T x = NormalFloat(-FPBits::exponentBias, mantissa, 0); in testUnderflowToZeroOnSubnormal() 100 NormalFloat(-FPBits::exponentBias, mantissa, 0), in testNormalOperation() 101 NormalFloat(-FPBits::exponentBias, mantissa, 1)}; in testNormalOperation() 112 T x = NormalFloat(-FPBits::exponentBias + 1, 2 * NormalFloat::one - 1, 0); in testNormalOperation() 118 x = NormalFloat(FPBits::exponentBias, NormalFloat::one, 0); in testNormalOperation() 132 x = NormalFloat(-FPBits::exponentBias + 1, NormalFloat::one >> 10, 0); in testNormalOperation()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/libc/utils/FPUtil/ |
H A D | NormalFloat.h | 92 int biasedExponent = exponent + FPBits<T>::exponentBias; in T() 102 constexpr int subnormalExponent = -FPBits<T>::exponentBias + 1; in T() 117 result.exponent = exponent + FPBits<T>::exponentBias; in T() 139 exponent = 1 - FPBits<T>::exponentBias - shift; in initFromBits() 141 exponent = bits.exponent - FPBits<T>::exponentBias; in initFromBits() 191 int biasedExponent = exponent + FPBits<long double>::exponentBias; 201 constexpr int subnormalExponent = -FPBits<long double>::exponentBias + 1;
|
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/flang/include/flang/Evaluate/ |
H A D | real.h | 44 using Details::exponentBias; 136 false, exponentBias - binaryPrecision, Fraction::MASKL(1)); in EPSILON() 153 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias}; 154 static constexpr int MINEXPONENT{1 - exponentBias}; 193 int exponent{exponentBias + absN.bits - leadz - 1}; 226 RealFlag::Overflow, exponent >= exponentBias + result.value.bits); 229 exponent - exponentBias - binaryPrecision + 1}; // positive -> left 256 int exponent{exponentBias + x.UnbiasedExponent()}; 302 int exponent{Exponent() - exponentBias}; in UnbiasedExponent() 331 exponent += exponentBias - yExponent; in CombineExponents() [all …]
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/flang/include/flang/Evaluate/ |
H A D | real.h | 44 using Details::exponentBias; 134 false, exponentBias - binaryPrecision, Fraction::MASKL(1)); in EPSILON() 151 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias}; 152 static constexpr int MINEXPONENT{1 - exponentBias}; 191 int exponent{exponentBias + absN.bits - leadz - 1}; 224 RealFlag::Overflow, exponent >= exponentBias + result.value.bits); 227 exponent - exponentBias - binaryPrecision + 1}; // positive -> left 259 int exponent{exponentBias + x.UnbiasedExponent()}; 305 int exponent{Exponent() - exponentBias}; in UnbiasedExponent() 334 exponent += exponentBias - yExponent; in CombineExponents() [all …]
|
/dports/devel/llvm12/llvm-project-12.0.1.src/flang/include/flang/Evaluate/ |
H A D | real.h | 44 using Details::exponentBias; 132 false, exponentBias - binaryPrecision, Fraction::MASKL(1)); in EPSILON() 149 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias}; 150 static constexpr int MINEXPONENT{1 - exponentBias}; 189 int exponent{exponentBias + absN.bits - leadz - 1}; 222 RealFlag::Overflow, exponent >= exponentBias + result.value.bits); 225 exponent - exponentBias - binaryPrecision + 1}; // positive -> left 257 int exponent{exponentBias + x.UnbiasedExponent()}; 303 int exponent{Exponent() - exponentBias}; in UnbiasedExponent() 332 exponent += exponentBias - yExponent; in CombineExponents() [all …]
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/flang/include/flang/Evaluate/ |
H A D | real.h | 44 using Details::exponentBias; 134 false, exponentBias - binaryPrecision, Fraction::MASKL(1)); in EPSILON() 151 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias}; 152 static constexpr int MINEXPONENT{1 - exponentBias}; 191 int exponent{exponentBias + absN.bits - leadz - 1}; 224 RealFlag::Overflow, exponent >= exponentBias + result.value.bits); 227 exponent - exponentBias - binaryPrecision + 1}; // positive -> left 259 int exponent{exponentBias + x.UnbiasedExponent()}; 305 int exponent{Exponent() - exponentBias}; in UnbiasedExponent() 334 exponent += exponentBias - yExponent; in CombineExponents() [all …]
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/flang/include/flang/Evaluate/ |
H A D | real.h | 44 using Details::exponentBias; 132 false, exponentBias - binaryPrecision, Fraction::MASKL(1)); in EPSILON() 149 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias}; 150 static constexpr int MINEXPONENT{1 - exponentBias}; 189 int exponent{exponentBias + absN.bits - leadz - 1}; 222 RealFlag::Overflow, exponent >= exponentBias + result.value.bits); 225 exponent - exponentBias - binaryPrecision + 1}; // positive -> left 257 int exponent{exponentBias + x.UnbiasedExponent()}; 303 int exponent{Exponent() - exponentBias}; in UnbiasedExponent() 332 exponent += exponentBias - yExponent; in CombineExponents() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/flang/include/flang/Evaluate/ |
H A D | real.h | 44 using Details::exponentBias; 136 false, exponentBias - binaryPrecision, Fraction::MASKL(1)); in EPSILON() 153 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias}; 154 static constexpr int MINEXPONENT{1 - exponentBias}; 193 int exponent{exponentBias + absN.bits - leadz - 1}; 226 RealFlag::Overflow, exponent >= exponentBias + result.value.bits); 229 exponent - exponentBias - binaryPrecision + 1}; // positive -> left 256 int exponent{exponentBias + x.UnbiasedExponent()}; 302 int exponent{Exponent() - exponentBias}; in UnbiasedExponent() 331 exponent += exponentBias - yExponent; in CombineExponents() [all …]
|
/dports/devel/llvm13/llvm-project-13.0.1.src/flang/include/flang/Evaluate/ |
H A D | real.h | 44 using Details::exponentBias; 134 false, exponentBias - binaryPrecision, Fraction::MASKL(1)); in EPSILON() 151 static constexpr int MAXEXPONENT{maxExponent - 1 - exponentBias}; 152 static constexpr int MINEXPONENT{1 - exponentBias}; 191 int exponent{exponentBias + absN.bits - leadz - 1}; 224 RealFlag::Overflow, exponent >= exponentBias + result.value.bits); 227 exponent - exponentBias - binaryPrecision + 1}; // positive -> left 259 int exponent{exponentBias + x.UnbiasedExponent()}; 305 int exponent{Exponent() - exponentBias}; in UnbiasedExponent() 334 exponent += exponentBias - yExponent; in CombineExponents() [all …]
|
/dports/devel/llvm12/llvm-project-12.0.1.src/libc/utils/FPUtil/ |
H A D | NormalFloat.h | 92 int biasedExponent = exponent + FPBits<T>::exponentBias; in T() 102 constexpr int subnormalExponent = -FPBits<T>::exponentBias + 1; in T() 135 result.exponent = exponent + FPBits<T>::exponentBias; in T() 156 exponent = 1 - FPBits<T>::exponentBias - shift; in initFromBits() 158 exponent = bits.exponent - FPBits<T>::exponentBias; in initFromBits() 208 int biasedExponent = exponent + FPBits<long double>::exponentBias; 218 constexpr int subnormalExponent = -FPBits<long double>::exponentBias + 1;
|