This is an archive of the discontinued LLVM Phabricator instance.

[libc] adjust strtofloat precision for subnormals
ClosedPublic

Authored by michaelrj on Jul 10 2023, 5:00 PM.

Details

Summary

Subnormal floating point numbers have a lower effective precision than
normal floating point numbers. This can cause issues for the fuzz test
since the MPFR floats have a constant precision regardless of the
exponent, and the precision must match exactly or else create rounding
errors. To solve this problem, the precision of the MPFR floats is
dynamically calculated.

Diff Detail

Event Timeline

michaelrj created this revision.Jul 10 2023, 5:00 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 10 2023, 5:00 PM
michaelrj requested review of this revision.Jul 10 2023, 5:00 PM
lntue accepted this revision.Jul 10 2023, 9:20 PM
This revision is now accepted and ready to land.Jul 10 2023, 9:20 PM
This revision was automatically updated to reflect the committed changes.