Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
-
generic
-
generic
Description
With power of 2 values Math.pow has reduced performance. The developer can work around the issue with code similar to the one below:
if (y == 2) {
return y * y;
}
return Math.pow(x, y);
if (y == 2) {
return y * y;
}
return Math.pow(x, y);
Attachments
Issue Links
- relates to
-
JDK-8029302 Performance regression in Math.pow intrinsic
-
- Resolved
-