[libc-commits] [PATCH] D131652: [libc] Change sinf/cosf range reduction to mod pi/32 to be shared with tanf.

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Aug 10 23:29:11 PDT 2022


lntue created this revision.
lntue added reviewers: michaelrj, sivachandra, orex, zimmermann6.
Herald added subscribers: ecnelises, tschuett.
Herald added projects: libc-project, All.
lntue requested review of this revision.

Change sinf/cosf range reduction to mod pi/32 to be shared with tanf,
since polynomial approximations for tanf on subintervals of length pi/16 do not
provide enough accuracy.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131652

Files:
  libc/docs/math.rst
  libc/src/math/generic/cosf.cpp
  libc/src/math/generic/range_reduction.h
  libc/src/math/generic/range_reduction_fma.h
  libc/src/math/generic/sincosf.cpp
  libc/src/math/generic/sincosf_utils.h
  libc/src/math/generic/sinf.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131652.451741.patch
Type: text/x-patch
Size: 35511 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220811/caf0d731/attachment-0001.bin>


More information about the libc-commits mailing list