[libc-commits] [PATCH] D147676: [libc][math] Update range reduction step for log10f and reduce its latency.

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Apr 5 19:32:10 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/D147676

Files:
  libc/src/math/generic/common_constants.cpp
  libc/src/math/generic/common_constants.h
  libc/src/math/generic/log10f.cpp
  libc/test/src/math/log10f_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147676.511257.patch
Type: text/x-patch
Size: 13644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230406/4051990b/attachment.bin>


More information about the libc-commits mailing list