diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2024-01-23 11:48:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 11:48:28 +0100 |
commit | 3bc86bf3bf742506818cf4d94c9227e4afed6f19 (patch) | |
tree | 7ff6848549a603bc7ca23cab7170409fe7b37128 /libc/fuzzing | |
parent | 9629c73aeb4609f58aa9edb0b87d18dd9e8fecc0 (diff) | |
download | llvm-3bc86bf3bf742506818cf4d94c9227e4afed6f19.zip llvm-3bc86bf3bf742506818cf4d94c9227e4afed6f19.tar.gz llvm-3bc86bf3bf742506818cf4d94c9227e4afed6f19.tar.bz2 |
[libc] Remove unnecessary `FPBits` functions and properties (#79113)
This patch reduces the surface of `FPBits`.
Diffstat (limited to 'libc/fuzzing')
-rw-r--r-- | libc/fuzzing/stdlib/strtofloat_fuzz.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/fuzzing/stdlib/strtofloat_fuzz.cpp b/libc/fuzzing/stdlib/strtofloat_fuzz.cpp index affef6f..b773043 100644 --- a/libc/fuzzing/stdlib/strtofloat_fuzz.cpp +++ b/libc/fuzzing/stdlib/strtofloat_fuzz.cpp @@ -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. |