Temp changes for analyzing test failures.

This commit is contained in:
tn 2015-02-25 10:01:02 +01:00
parent 6b1b592887
commit ccd0fd51a5
1 changed files with 8 additions and 2 deletions

View File

@ -1468,6 +1468,10 @@ public class FastMath {
return x;
}
// special case #3 described in javadoc of Math.pow(double, double)
if (y != y) { // Y is NaN
return y;
}
if (x == 0) {
long bits = Double.doubleToRawLongBits(x);
@ -1510,7 +1514,8 @@ public class FastMath {
return Double.NaN;
}
if (x * x > 1.0) {
// TEMP: was x * x > 1.0
if (abs(x) > 1.0) {
return Double.POSITIVE_INFINITY;
} else {
return 0.0;
@ -1547,7 +1552,8 @@ public class FastMath {
return Double.NaN;
}
if (x * x < 1.0) {
// TEMP: was x * x < 1.0
if (abs(x) < 1.0) {
return Double.POSITIVE_INFINITY;
} else {
return 0.0;