[libc-commits] [PATCH] D154150: [libc] fix MPFR accuracy in fuzz test
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Jun 30 08:43:35 PDT 2023
lntue accepted this revision.
lntue added inline comments.
This revision is now accepted and ready to land.
================
Comment at: libc/fuzzing/stdlib/strtofloat_fuzz.cpp:83
+ mpfr_t mpfr_float;
+ mpfr_init2(mpfr_float, FloatProperties<float>::MANTISSA_WIDTH + 1);
+
----------------
These values are useful. Maybe you could add them directly to `FloatProperties` , something like:
`FloatProperties<T>::PRECISION` ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154150/new/
https://reviews.llvm.org/D154150
More information about the libc-commits
mailing list