mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8327147: Improve performance of Math ceil, floor, and rint for x86
Reviewed-by: jbhateja, sviswanathan, dlong
This commit is contained in:
parent
972e81d1ad
commit
7c5e6e74c8
3 changed files with 9 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue