Skip to content

Commit

Permalink
[libc][math] Update range reduction step for log10f and reduce its la…
Browse files Browse the repository at this point in the history
…tency.

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.

Reviewed By: zimmermann6

Differential Revision: https://reviews.llvm.org/D147676
  • Loading branch information
lntue committed Apr 7, 2023
1 parent 3f4d160 commit 9af8dca
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 150 deletions.
Loading

0 comments on commit 9af8dca

Please sign in to comment.