Home
last modified time | relevance | path

Searched refs:EXP_BIAS (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/
H A DNormalFloat.h96 int biased_exponent = exponent + FPBits<T>::EXP_BIAS; in T()
106 constexpr int SUBNORMAL_EXPONENT = -FPBits<T>::EXP_BIAS + 1; in T()
142 static_cast<StorageType>(exponent + FPBits<T>::EXP_BIAS)); in T()
163 exponent = 1 - FPBits<T>::EXP_BIAS - static_cast<int32_t>(shift); in init_from_bits()
165 exponent = bits.get_biased_exponent() - FPBits<T>::EXP_BIAS; in init_from_bits()
218 int biased_exponent = exponent + LDBits::EXP_BIAS;
228 constexpr int SUBNORMAL_EXPONENT = -LDBits::EXP_BIAS + 1;
H A Ddyadic_float.h187 if (unbiased_exp + FPBits::EXP_BIAS >= FPBits::MAX_BIASED_EXPONENT) { in generic_as()
217 if (unbiased_exp < -FPBits::EXP_BIAS - FPBits::FRACTION_LEN) { in generic_as()
220 } else if (unbiased_exp == -FPBits::EXP_BIAS - FPBits::FRACTION_LEN) { in generic_as()
227 if (unbiased_exp < 1 - FPBits::EXP_BIAS) { in generic_as()
229 extra_fraction_len += 1 - FPBits::EXP_BIAS - unbiased_exp; in generic_as()
232 static_cast<StorageType>(unbiased_exp + FPBits::EXP_BIAS); in generic_as()
294 int exp_hi = exponent + static_cast<int>((Bits - 1) + FPBits<T>::EXP_BIAS); in fast_as()
296 if (LIBC_UNLIKELY(exp_hi > 2 * FPBits<T>::EXP_BIAS)) { in fast_as()
299 FPBits<T>::create_value(sign, 2 * FPBits<T>::EXP_BIAS, IMPLICIT_MASK) in fast_as()
321 exp_hi = FPBits<T>::EXP_BIAS; in fast_as()
[all …]
H A DFPBits.h173 LIBC_INLINE_VAR static constexpr int32_t EXP_BIAS =
175 static_assert(EXP_BIAS > 0);
242 return Exponent(-EXP_BIAS);
244 LIBC_INLINE static constexpr auto min() { return Exponent(1 - EXP_BIAS); }
246 LIBC_INLINE static constexpr auto max() { return Exponent(EXP_BIAS); }
247 LIBC_INLINE static constexpr auto inf() { return Exponent(EXP_BIAS + 1); }
259 : UP(static_cast<uint32_t>(static_cast<int32_t>(exp) + EXP_BIAS)) {}
263 return Exponent(static_cast<int32_t>(UP::value - EXP_BIAS));
634 using UP::EXP_BIAS;
H A DNearestIntegerOperations.h289 if (width - 1 > FPBits<T>::EXP_BIAS) in fromfp()
293 static_cast<StorageType>(width - 1 + FPBits<T>::EXP_BIAS); in fromfp()
319 if (width > FPBits<T>::EXP_BIAS) in fromfp()
322 StorageType range_exp = static_cast<StorageType>(width + FPBits<T>::EXP_BIAS); in fromfp()
/freebsd/contrib/llvm-project/libc/src/__support/
H A Dstr_to_float.h114 int32_t exp2 = exp10_to_exp2(exp10) + FPBits::STORAGE_LEN + FPBits::EXP_BIAS -
233 exp10_to_exp2(exp10) + FPBits::STORAGE_LEN + FPBits::EXP_BIAS - clz;
359 exp10_to_exp2(hpd.get_decimal_point() - 1) > FPBits::EXP_BIAS) {
367 (FPBits::EXP_BIAS + static_cast<int32_t>(FPBits::FRACTION_LEN))) {
406 exp2 += FPBits::EXP_BIAS;
638 return fputil::FPBits<T>::EXP_BIAS / 3; in get_upper_bound()
659 return -((FPBits::EXP_BIAS + in get_lower_bound()
790 int32_t biased_exponent = exp2 + FPBits::STORAGE_LEN + FPBits::EXP_BIAS - 1; in binary_exp_to_float()
H A Dfloat_to_string.h412 static constexpr int EXP_BIAS = fputil::FPBits<T>::EXP_BIAS; variable
625 static constexpr int EXP_BIAS = fputil::FPBits<long double>::EXP_BIAS; variable
630 FPBits::EXP_BIAS,
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/generic/
H A Dsqrt_80_bit_long_double.h111 x_exp = ((x_exp >> 1) + LDBits::EXP_BIAS); in sqrt()