RFR: 8308776: [AArch64] Math.log is 10% slower than StrictMath.log on aarch64
Dean Long
dlong at openjdk.org
Wed Nov 19 01:42:03 UTC 2025
On Thu, 13 Nov 2025 20:41:56 GMT, Dhamoder Nalla <dhanalla at openjdk.org> wrote:
> This PR Introduces an optimized AArch64 intrinsic for Math.log using reciprocal refinement and a table-driven polynomial.
> Improves throughput for double logarithms while preserving IEEE-754 corner case behavior (±0, subnormals, negatives, NaN).
If it was explained somewhere why Math.log is 10% slower than StrictMath.log, I missed it. I would naively assume that Math.log can use the StrictMath.log implementation and get the same performance.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28306#issuecomment-3550193135
More information about the hotspot-dev
mailing list