8265325: Optimize StubRoutines::dpow() for Math.pow(x, 0.5) #3536
I'd like to optimize the StubRoutines::dpow() for Math.pow(x, 0.5).
In the pow and sqrt discussion , Joe taught me that the Java library implementation of pow has been optimized for pow(x, 2.0)  and pow(x, 0.5) .
Although not all Math.pow(x, 0.5) can be replaced with sqrt(x), we can still do it safely for the following cases:
The effect of this opt has been tested on serveral platforms showing 3.0x ~ 6.3x performance improvement.
Detailed performance numbers:
The text was updated successfully, but these errors were encountered:
@DamonFool This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 35 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
@DamonFool Since your change was applied there have been 37 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit b64a3fb.