[libc-commits] [PATCH] D147755: [libc][math] Update range reduction step for logf and reduce its latency.
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Apr 6 18:48:05 PDT 2023
lntue created this revision.
lntue added reviewers: michaelrj, sivachandra, renyichen, santoshn, zimmermann6.
Herald added subscribers: ecnelises, tschuett.
Herald added projects: libc-project, All.
lntue requested review of this revision.
Simplify the range reduction steps by choosing the reduction constants
carefully so that the reduced arguments v = r*m_x - 1 and v^2 are exact in double
precision, even without FMA instructions, and -2^-8 <= v < 2^-7. This allows the
polynomial evaluations to be parallelized more efficiently.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147755
Files:
libc/src/math/generic/common_constants.cpp
libc/src/math/generic/common_constants.h
libc/src/math/generic/logf.cpp
libc/test/src/math/logf_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147755.511585.patch
Type: text/x-patch
Size: 11870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230407/f3f656fd/attachment-0001.bin>
More information about the libc-commits
mailing list