This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add implementations of nearbyint[f|l].
ClosedPublic

Authored by sivachandra on Jan 5 2021, 12:51 PM.

Details

Summary

The implementation is exactly the same as rint* as even rint does not
raise any floating point exceptions currently. [Note that the standards
do not specify that floating point exceptions must be raised - they
leave it up to the implementation to choose to raise FE_INEXACT when
rounding non-integral values.]

Diff Detail

Event Timeline

sivachandra created this revision.Jan 5 2021, 12:51 PM
sivachandra requested review of this revision.Jan 5 2021, 12:51 PM
lntue accepted this revision.Jan 5 2021, 4:01 PM
This revision is now accepted and ready to land.Jan 5 2021, 4:01 PM
This revision was landed with ongoing or failed builds.Jan 5 2021, 9:51 PM
This revision was automatically updated to reflect the committed changes.