[libc-commits] [PATCH] D130780: [libc][math] Added tanhf function.
Kirill Okhotnikov via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Jul 29 07:51:50 PDT 2022
orex created this revision.
orex added reviewers: lntue, sivachandra, zimmermann6.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
orex requested review of this revision.
Correct rounding function. Performance ~2x faster than glibc analog.
Performance (llvm 12 intel):
CORE_MATH_PERF_MODE=rdtsc PERF_ARGS='' ./perf.sh tanhf
GNU libc version: 2.31
GNU libc release: stable
13.279
37.492
18.145
CORE_MATH_PERF_MODE=rdtsc PERF_ARGS='--latency' ./perf.sh tanhf
GNU libc version: 2.31
GNU libc release: stable
40.658
109.582
66.568
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130780
Files:
libc/config/darwin/arm/entrypoints.txt
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/x86_64/entrypoints.txt
libc/config/windows/entrypoints.txt
libc/spec/stdc.td
libc/src/math/CMakeLists.txt
libc/src/math/generic/CMakeLists.txt
libc/src/math/generic/tanhf.cpp
libc/src/math/tanhf.h
libc/test/src/math/CMakeLists.txt
libc/test/src/math/exhaustive/CMakeLists.txt
libc/test/src/math/exhaustive/tanhf_test.cpp
libc/test/src/math/tanhf_test.cpp
libc/utils/MPFRWrapper/MPFRUtils.cpp
libc/utils/MPFRWrapper/MPFRUtils.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130780.448630.patch
Type: text/x-patch
Size: 13543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220729/96d46d74/attachment.bin>
More information about the libc-commits
mailing list