RFR: 8264945: Optimize the code-gen for Math.pow(x, 0.5) [v2]
Jie Fu
jiefu at openjdk.java.net
Tue Apr 20 22:43:04 UTC 2021
On Tue, 20 Apr 2021 16:49:58 GMT, Andrew Haley <aph at openjdk.org> wrote:
> This may be unsafe. AFAIK there is no guarantee about the monotonicity of `Math.pow(x, y)` as y moves from `Math.pow(x, nextAfter(0.5, -1)` to `Math.pow(x, 0.5)` to `Math.pow(x, nextAfter(0.5, 1)` for all x. Did anyone look?
Thanks @theRealAph for your review.
What did you mean by `Math.pow(x, nextAfter(0.5, -1)` and `Math.pow(x, nextAfter(0.5, 1)` ?
-------------
PR: https://git.openjdk.java.net/jdk/pull/3404
More information about the hotspot-compiler-dev
mailing list