This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add range reduction functions based on Paine and Hanek algorithm.
ClosedPublic

Authored by sivachandra on Jun 23 2021, 1:49 PM.

Details

Summary

These functions will be used in a future patch to implement
trigonometric functions. Unit tests have been added but to the
libc-long-running-tests suite. The unit tests long running because we
compare against MPFR computations performed at 1280 bits of precision.

Some cleanups or elimination of repeated patterns can be done as follow
up changes.

Diff Detail

Event Timeline

sivachandra created this revision.Jun 23 2021, 1:49 PM
sivachandra requested review of this revision.Jun 23 2021, 1:49 PM

Remove an unrelated edit that sneaked in.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 22 2021, 10:19 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.