[libc-commits] [PATCH] D130780: [libc][math] Added tanhf function.

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Aug 1 06:40:48 PDT 2022


lntue accepted this revision.
lntue added a comment.
This revision is now accepted and ready to land.

The implementation passed exhaustive tests for all 3 modes: SSE2, SSE4.2, and FMA.

And here is the performance number on Ryzen 1700:

  $ CORE_MATH_PERF_MODE="rdtsc" ./perf.sh tanhf
  CORE-MATH reciprocal throughput   : 13.379
  System LIBC reciprocal throughput : 55.843
  LIBC reciprocal throughput        : 25.130
  
  $ CORE_MATH_PERF_MODE="rdtsc" ./perf.sh tanhf --latency
  GNU libc version: 2.31
  GNU libc release: stable
  CORE-MATH latency   : 43.814
  System LIBC latency : 125.128
  LIBC latency        : 94.906


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130780/new/

https://reviews.llvm.org/D130780



More information about the libc-commits mailing list