aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/gdbclientutils.py
diff options
context:
space:
mode:
authorTue Ly <lntue@google.com>2022-03-14 09:43:33 -0400
committerTue Ly <lntue@google.com>2022-03-15 10:24:56 -0400
commit64af346b185ab3c3c34e145181717350c304b05a (patch)
tree9717fa456ed31059100e5ecaf5135d6421f1884a /lldb/packages/Python/lldbsuite/test/gdbclientutils.py
parent7e4cf582cffdc287a0d6ee354e90a4fbdc5a696d (diff)
downloadllvm-64af346b185ab3c3c34e145181717350c304b05a.zip
llvm-64af346b185ab3c3c34e145181717350c304b05a.tar.gz
llvm-64af346b185ab3c3c34e145181717350c304b05a.tar.bz2
[libc] Implement expm1f function that is correctly rounded for all rounding modes.
Implement expm1f function that is correctly rounded for all rounding modes. This is based on expf implementation. From exhaustive testings, using expf implementation, and subtract 1.0 before rounding the final result to single precision gives correctly rounded results for all |x| > 2^-4 with 1 exception. When |x| < 2^-25, we use x + x^2 (implemented with a single fma). And for 2^-25 <= |x| <= 2^-4, we use a single degree-8 minimax polynomial generated by Sollya. Reviewed By: sivachandra, zimmermann6 Differential Revision: https://reviews.llvm.org/D121574
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions