RFR: 8338694: x86_64 intrinsic for tanh using libm [v9]

Srinivas Vamsi Parasa duke at openjdk.org
Mon Sep 16 23:01:08 UTC 2024


> The goal of this PR is to implement an x86_64 intrinsic for java.lang.Math.tanh() using libm
> 
> Benchmark (ops/ms) | Stock JDK | Tanh intrinsic | Speedup
> -- | -- | -- | --
> MathBench.tanhDouble | 70900 | 95618 | 1.35x

Srinivas Vamsi Parasa has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 13 additional commits since the last revision:

 - Merge branch 'master' of https://git.openjdk.java.net/jdk into onetanh
 - update tanh additional tests
 - Merge branch 'master' of https://git.openjdk.java.net/jdk into onetanh
 - Update HyperbolicTests.java
   
   Remove the path to random library
 - update copyright year and remove unused random from HyperbolicTests
 - remove tanh tests in seprate file
 - Update test/jdk/java/lang/Math/HyperbolicTests.java
   
   Co-authored-by: Andrey Turbanov <turbanoff at gmail.com>
 - quad precision tanh tests
 - c1 and template generator fixes
 - update libm tanh reference test with code review suggestions
 - ... and 3 more: https://git.openjdk.org/jdk/compare/e48dd57e...b438555e

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/20657/files
  - new: https://git.openjdk.org/jdk/pull/20657/files/3664be15..b438555e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20657&range=08
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20657&range=07-08

  Stats: 344 lines in 9 files changed: 329 ins; 2 del; 13 mod
  Patch: https://git.openjdk.org/jdk/pull/20657.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20657/head:pull/20657

PR: https://git.openjdk.org/jdk/pull/20657


More information about the core-libs-dev mailing list