[libc-commits] [PATCH] D134002: [libc][math] Improve tanhf performance.
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Sep 15 17:53:50 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.
Optimize the core part of tanhf implementation that is to compute e^x
similar to https://reviews.llvm.org/D133870. Factor the constants and
polynomial approximation out so that it can be used for `exp10f`
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134002
Files:
libc/src/math/generic/explogxf.cpp
libc/src/math/generic/explogxf.h
libc/src/math/generic/tanhf.cpp
libc/test/src/math/explogxf_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134002.460580.patch
Type: text/x-patch
Size: 10169 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220916/f41a82af/attachment.bin>
More information about the libc-commits
mailing list