Revert back temporary changes.

This commit is contained in:
tn 2015-02-25 17:45:07 +01:00
parent ccd0fd51a5
commit d98897b11e
1 changed files with 2 additions and 9 deletions

View File

@ -1468,11 +1468,6 @@ 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);
if ((bits & 0x8000000000000000L) != 0) {
@ -1514,8 +1509,7 @@ public class FastMath {
return Double.NaN;
}
// TEMP: was x * x > 1.0
if (abs(x) > 1.0) {
if (x * x > 1.0) {
return Double.POSITIVE_INFINITY;
} else {
return 0.0;
@ -1552,8 +1546,7 @@ public class FastMath {
return Double.NaN;
}
// TEMP: was x * x < 1.0
if (abs(x) < 1.0) {
if (x * x < 1.0) {
return Double.POSITIVE_INFINITY;
} else {
return 0.0;