Home
last modified time | relevance | path

Searched refs:EXPONENT_BIAS (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/libc/test/src/math/
H A DLdExpTest.h73 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 DRoundToIntegerTest.h123 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 DFloatProperties.h36 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 DNormalFloat.h92 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 DFPBits.h93 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 DLongDoubleBits.h38 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 Dstr_to_float.h114 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 Dfloat_hex_converter.h41 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 Dexp2f.cpp144 static_cast<int>(fputil::FloatProperties<double>::EXPONENT_BIAS);
/llvm-project-15.0.7/libc/src/__support/FPUtil/generic/
H A Dsqrt_80_bit_long_double.h112 x_exp = ((x_exp >> 1) + FPBits<long double>::EXPONENT_BIAS); in sqrt()
H A Dsqrt.h149 x_exp = ((x_exp >> 1) + FPBits<T>::EXPONENT_BIAS);