Temp changes for analyzing test failures.
This commit is contained in:
parent
6b1b592887
commit
ccd0fd51a5
|
@ -1468,6 +1468,10 @@ public class FastMath {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// special case #3 described in javadoc of Math.pow(double, double)
|
||||||
|
if (y != y) { // Y is NaN
|
||||||
|
return y;
|
||||||
|
}
|
||||||
|
|
||||||
if (x == 0) {
|
if (x == 0) {
|
||||||
long bits = Double.doubleToRawLongBits(x);
|
long bits = Double.doubleToRawLongBits(x);
|
||||||
|
@ -1510,7 +1514,8 @@ public class FastMath {
|
||||||
return Double.NaN;
|
return Double.NaN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x * x > 1.0) {
|
// TEMP: was x * x > 1.0
|
||||||
|
if (abs(x) > 1.0) {
|
||||||
return Double.POSITIVE_INFINITY;
|
return Double.POSITIVE_INFINITY;
|
||||||
} else {
|
} else {
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
@ -1547,7 +1552,8 @@ public class FastMath {
|
||||||
return Double.NaN;
|
return Double.NaN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x * x < 1.0) {
|
// TEMP: was x * x < 1.0
|
||||||
|
if (abs(x) < 1.0) {
|
||||||
return Double.POSITIVE_INFINITY;
|
return Double.POSITIVE_INFINITY;
|
||||||
} else {
|
} else {
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
|
Loading…
Reference in New Issue