[libc-commits] [PATCH] D104817: [libc] Add range reduction functions based on Paine and Hanek algorithm.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jun 23 13:49:14 PDT 2021


sivachandra created this revision.
sivachandra added a reviewer: lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
sivachandra requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104817

Files:
  libc/src/math/generic/CMakeLists.txt
  libc/src/math/generic/dp_trig.cpp
  libc/src/math/generic/dp_trig.h
  libc/test/src/math/CMakeLists.txt
  libc/test/src/math/mod_k_pi_test.cpp
  libc/utils/FPUtil/UInt.h
  libc/utils/FPUtil/XFloat.h
  libc/utils/MPFRWrapper/MPFRUtils.cpp
  libc/utils/MPFRWrapper/MPFRUtils.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104817.354071.patch
Type: text/x-patch
Size: 22203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210623/90691900/attachment-0001.bin>


More information about the libc-commits mailing list