The accuracy for the MPFR numbers in the strtofloat fuzz test was set
too high, causing rounding issues when rounding to a smaller final
result.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/fuzzing/stdlib/strtofloat_fuzz.cpp | ||
---|---|---|
83 | These values are useful. Maybe you could add them directly to FloatProperties , something like: |
libc/fuzzing/stdlib/strtofloat_fuzz.cpp | ||
---|---|---|
83 | They are also used in https://github.com/llvm/llvm-project/blob/main/libc/utils/MPFRWrapper/MPFRUtils.cpp#L33 |
Comment Actions
add MANTISSA_PRECISION to float_properties, and use it in MPFR utils.
I also changed the title of the commit slightly since the proposed one was too long
These values are useful. Maybe you could add them directly to FloatProperties , something like:
FloatProperties<T>::PRECISION ?