Searched refs:EXPONENT_BIAS (Results 1 – 11 of 11) sorted by relevance
| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | LdExpTest.h | 73 int32_t base_exponent = FPBits::EXPONENT_BIAS + MANTISSA_WIDTH; in testUnderflowToZeroOnNormal() 86 int32_t base_exponent = FPBits::EXPONENT_BIAS + MANTISSA_WIDTH; in testUnderflowToZeroOnSubnormal() 90 T x = NormalFloat(-FPBits::EXPONENT_BIAS, MANTISSA, 0); in testUnderflowToZeroOnSubnormal() 102 NormalFloat(-FPBits::EXPONENT_BIAS, MANTISSA, 0), in testNormalOperation() 103 NormalFloat(-FPBits::EXPONENT_BIAS, MANTISSA, 1)}; in testNormalOperation() 114 T x = NormalFloat(-FPBits::EXPONENT_BIAS + 1, 2 * NormalFloat::ONE - 1, 0); in testNormalOperation() 120 x = NormalFloat(FPBits::EXPONENT_BIAS, NormalFloat::ONE, 0); in testNormalOperation() 134 x = NormalFloat(-FPBits::EXPONENT_BIAS + 1, NormalFloat::ONE >> 10, 0); in testNormalOperation()
|
| H A D | RoundToIntegerTest.h | 123 bits.set_unbiased_exponent(EXPONENT_LIMIT + FPBits::EXPONENT_BIAS); in do_round_numbers_test() 187 bits.set_unbiased_exponent(EXPONENT_LIMIT + FPBits::EXPONENT_BIAS); in testIntegerOverflow()
|
| /llvm-project-15.0.7/libc/src/__support/FPUtil/ |
| H A D | FloatProperties.h | 36 static constexpr uint32_t EXPONENT_BIAS = 127; 61 static constexpr uint32_t EXPONENT_BIAS = 1023; 92 static constexpr uint32_t EXPONENT_BIAS = 93 FloatProperties<double>::EXPONENT_BIAS; 129 static constexpr uint32_t EXPONENT_BIAS = 16383; 158 static constexpr uint32_t EXPONENT_BIAS = 16383;
|
| H A D | NormalFloat.h | 92 int biased_exponent = exponent + FPBits<T>::EXPONENT_BIAS; in T() 102 constexpr int SUBNORMAL_EXPONENT = -FPBits<T>::EXPONENT_BIAS + 1; in T() 135 result.set_unbiased_exponent(exponent + FPBits<T>::EXPONENT_BIAS); in T() 156 exponent = 1 - FPBits<T>::EXPONENT_BIAS - shift; in init_from_bits() 158 exponent = bits.get_unbiased_exponent() - FPBits<T>::EXPONENT_BIAS; in init_from_bits() 209 int biased_exponent = exponent + FPBits<long double>::EXPONENT_BIAS; 220 constexpr int SUBNORMAL_EXPONENT = -FPBits<long double>::EXPONENT_BIAS + 1;
|
| H A D | FPBits.h | 93 static constexpr int EXPONENT_BIAS = (1 << (ExponentWidth<T>::VALUE - 1)) - 1; member 126 return int(get_unbiased_exponent()) - EXPONENT_BIAS; in get_exponent()
|
| /llvm-project-15.0.7/libc/src/__support/FPUtil/x86_64/ |
| H A D | LongDoubleBits.h | 38 static constexpr int EXPONENT_BIAS = 0x3FFF; 127 return int(1) - EXPONENT_BIAS; 128 return int(get_unbiased_exponent()) - EXPONENT_BIAS;
|
| /llvm-project-15.0.7/libc/src/__support/ |
| H A D | str_to_float.h | 114 fputil::FloatProperties<T>::EXPONENT_BIAS - clz; in eisel_lemire() 214 fputil::FloatProperties<long double>::EXPONENT_BIAS - clz; 325 static_cast<int64_t>(fputil::FloatProperties<T>::EXPONENT_BIAS)) { in simple_decimal_conversion() 334 static_cast<int64_t>(fputil::FloatProperties<T>::EXPONENT_BIAS + in simple_decimal_conversion() 375 exp2 += fputil::FloatProperties<T>::EXPONENT_BIAS; in simple_decimal_conversion() 563 static_cast<int64_t>(fputil::FloatProperties<T>::EXPONENT_BIAS) / 3) { in decimal_exp_to_float() 572 static_cast<int64_t>(fputil::FloatProperties<T>::EXPONENT_BIAS + in decimal_exp_to_float() 636 exp2 + NUMBITS + fputil::FPBits<T>::EXPONENT_BIAS - 1; in binary_exp_to_float()
|
| /llvm-project-15.0.7/libc/src/stdio/printf_core/ |
| H A D | float_hex_converter.h | 41 exponent_bias = fputil::FPBits<long double>::EXPONENT_BIAS; in convert_float_hex_exp() 50 exponent_bias = fputil::FPBits<double>::EXPONENT_BIAS; in convert_float_hex_exp()
|
| /llvm-project-15.0.7/libc/src/math/generic/ |
| H A D | exp2f.cpp | 144 static_cast<int>(fputil::FloatProperties<double>::EXPONENT_BIAS);
|
| /llvm-project-15.0.7/libc/src/__support/FPUtil/generic/ |
| H A D | sqrt_80_bit_long_double.h | 112 x_exp = ((x_exp >> 1) + FPBits<long double>::EXPONENT_BIAS); in sqrt()
|
| H A D | sqrt.h | 149 x_exp = ((x_exp >> 1) + FPBits<T>::EXPONENT_BIAS);
|