8327147: Improve performance of Math ceil, floor, and rint for x86

Reviewed-by: jbhateja, sviswanathan, dlong
This commit is contained in:
vamsi-parasa 2024-03-07 21:44:46 +00:00 committed by Sandhya Viswanathan
parent 972e81d1ad
commit 7c5e6e74c8
3 changed files with 9 additions and 12 deletions

View file

@ -141,6 +141,11 @@ public class MathBench {
return Math.ceil(double4Dot1);
}
@Benchmark
public double addCeilFloorDouble() {
return Math.ceil(double4Dot1) + Math.floor(double4Dot1);
}
@Benchmark
public double copySignDouble() {
return Math.copySign(double81, doubleNegative12);