summaryrefslogtreecommitdiff
path: root/libc/fuzzing/stdlib/strtofloat_fuzz.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2024-01-23 11:51:18 +0100
committerGitHub <noreply@github.com>2024-01-23 11:51:18 +0100
commitb524eed9259e26b5812e2b55cc05e42fda217486 (patch)
tree87d032bc3d946a441b2618782c8863b6d922dd34 /libc/fuzzing/stdlib/strtofloat_fuzz.cpp
parent8e09f13d679df6c34dd03d8ad6116c832318cab0 (diff)
Revert "[libc] Remove unnecessary `FPBits` functions and properties" (#79118)
Reverts llvm/llvm-project#79113 It broke aarch64 build bot machines.
Diffstat (limited to 'libc/fuzzing/stdlib/strtofloat_fuzz.cpp')
-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 b773043bda67..affef6fcf549 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>::FRACTION_LEN + 1;
+ const int full_precision = FPBits<F>::MANTISSA_PRECISION;
// This is intended to be 0 when the exponent is the lowest normal and
// increase as the exponent's magnitude increases.