RFR: 8265325: Optimize StubRoutines::dpow() for Math.pow(x, 0.5) [v2]

Jie Fu jiefu at openjdk.java.net
Fri Apr 16 23:51:06 UTC 2021

On Fri, 16 Apr 2021 23:38:38 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

> Sorry, my bad. I thought to calculate `sqrt(a)` outside `test` method so that only `pow()` code is tested.
> Like calculating `gold` value not in compiled code.
> But the test have to use sqrt() for each value `a` and `sqrt` is 1 HW instruction so my suggestion was stupid.
> Please, revert this change. Original test code was fine.

Thanks for your clarification.
I got your point.



PR: https://git.openjdk.java.net/jdk/pull/3536

More information about the hotspot-compiler-dev mailing list