[all-commits] [llvm/llvm-project] 5ef987: [libc][math] Added tanhf function.
orex via All-commits
all-commits at lists.llvm.org
Mon Aug 1 13:43:25 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ef987c9852c07c6644b0b77fdb6c7102bc790f1
https://github.com/llvm/llvm-project/commit/5ef987c9852c07c6644b0b77fdb6c7102bc790f1
Author: Kirill Okhotnikov <okir at google.com>
Date: 2022-08-01 (Mon, 01 Aug 2022)
Changed paths:
M libc/config/darwin/arm/entrypoints.txt
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/config/windows/entrypoints.txt
M libc/spec/stdc.td
M libc/src/math/CMakeLists.txt
M libc/src/math/generic/CMakeLists.txt
A libc/src/math/generic/tanhf.cpp
A libc/src/math/tanhf.h
M libc/test/src/math/CMakeLists.txt
M libc/test/src/math/exhaustive/CMakeLists.txt
A libc/test/src/math/exhaustive/tanhf_test.cpp
A libc/test/src/math/tanhf_test.cpp
M libc/utils/MPFRWrapper/MPFRUtils.cpp
M libc/utils/MPFRWrapper/MPFRUtils.h
Log Message:
-----------
[libc][math] Added tanhf function.
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
```
Differential Revision: https://reviews.llvm.org/D130780
More information about the All-commits
mailing list