RFR: 8360558: Use hex literals instead of decimal literals in math intrinsic constants
Jatin Bhateja
jbhateja at openjdk.org
Tue Sep 30 02:33:47 UTC 2025
On Thu, 25 Sep 2025 19:26:34 GMT, Mohamed Issa <missa at openjdk.org> wrote:
> 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`
Thanks for addressing the following. It should maintain 1:1 mapping of stub with the original libm source
https://github.com/openjdk/jdk/pull/24470#discussion_r2113462482
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27497#issuecomment-3349712636
More information about the hotspot-compiler-dev
mailing list