[reland][libc] Remove unnecessary FPBits functions and properties (#79128)

- reland #79113
- Fix aarch64 RISC-V build
This commit is contained in:
Guillaume Chatelet
2024-01-23 13:48:03 +01:00
committed by GitHub
parent e60d780f4a
commit 6b02d2f863
69 changed files with 424 additions and 419 deletions

View File

@@ -28,7 +28,7 @@ using LIBC_NAMESPACE::fputil::FPBits;
// exponent. Subnormals have a lower effective precision since they don't
// necessarily use all of the bits of the mantissa.
template <typename F> inline constexpr int effective_precision(int exponent) {
const int full_precision = FPBits<F>::MANTISSA_PRECISION;
const int full_precision = FPBits<F>::FRACTION_LEN + 1;
// This is intended to be 0 when the exponent is the lowest normal and
// increase as the exponent's magnitude increases.