This is an archive of the discontinued LLVM Phabricator instance.

[libc] Implement expf function that is correctly rounded for all rounding modes.
ClosedPublic

Authored by lntue on Mar 10 2022, 9:11 PM.

Details

Summary

Implement expf function that is correctly rounded for all rounding modes.

Diff Detail

Event Timeline

lntue created this revision.Mar 10 2022, 9:11 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 10 2022, 9:11 PM
lntue requested review of this revision.Mar 10 2022, 9:11 PM
lntue updated this revision to Diff 414573.Mar 10 2022, 9:40 PM

Make sure hi and mid are non-negative.

lntue updated this revision to Diff 414589.Mar 10 2022, 11:11 PM

Return MAX_NORMAL when x >= 89 in FE_DOWNWARD and FE_TOWARDZERO rounding modes.

zimmermann6 accepted this revision.Mar 11 2022, 1:28 AM

my exhaustive search confirms it is correctly rounded for all four rounding modes, great!

This revision is now accepted and ready to land.Mar 11 2022, 1:28 AM
sivachandra accepted this revision.Mar 11 2022, 1:36 AM