RFR: 8264945: Optimize the code-gen for Math.pow(x, 0.5) [v2]
jiefu at openjdk.java.net
Wed Apr 21 08:41:13 UTC 2021
On Tue, 20 Apr 2021 22:39:50 GMT, Jie Fu <jiefu 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?
Hi @theRealAph ,
I didn't get your point.
Could you please make it more clearer and give us an example?
More information about the hotspot-compiler-dev