RFR: 8360558: Use hex literals instead of decimal literals in math intrinsic constants

Mohamed Issa missa at openjdk.org
Thu Sep 25 19:34:36 UTC 2025


A simple change to use hex literals instead of decimal literals in the constant arrays of the x86 cbrt and tanh stubs. The JTREG tests listed below were used to verify correctness. The baseline build used is [OpenJDK v26-b17](https://github.com/openjdk/jdk/releases/tag/jdk-26%2B17).

1. `jtreg:test/jdk/java/lang/Math/CubeRootTests.java`
2. `jtreg:test/jdk/java/lang/Math/HyperbolicTests.java`

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

Commit messages:
 - Convert x86 cbrt and tanh static constants from decimal literals to hex literals

Changes: https://git.openjdk.org/jdk/pull/27497/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27497&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8360558
  Stats: 272 lines in 2 files changed: 0 ins; 0 del; 272 mod
  Patch: https://git.openjdk.org/jdk/pull/27497.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27497/head:pull/27497

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


More information about the hotspot-compiler-dev mailing list