aboutsummaryrefslogtreecommitdiff
path: root/libc/fuzzing
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2024-01-23 13:48:03 +0100
committerGitHub <noreply@github.com>2024-01-23 13:48:03 +0100
commit6b02d2f86389d68a0cf2162377c5dda05bd4b68a (patch)
treeb6246569e74cef9fd5d01f7c5211f4a3fcc27b7f /libc/fuzzing
parente60d780f4a9ac6dc79aebe197d3575e9ea636b7f (diff)
downloadllvm-6b02d2f86389d68a0cf2162377c5dda05bd4b68a.zip
llvm-6b02d2f86389d68a0cf2162377c5dda05bd4b68a.tar.gz
llvm-6b02d2f86389d68a0cf2162377c5dda05bd4b68a.tar.bz2
[reland][libc] Remove unnecessary `FPBits` functions and properties (#79128)
- reland #79113 - Fix aarch64 RISC-V build
Diffstat (limited to 'libc/fuzzing')
-rw-r--r--libc/fuzzing/stdlib/strtofloat_fuzz.cpp2
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.