test/java/lang/Math/Log10Tests.java
Print this page
*** 151,166 ****
double up = Double.NaN;
double down = Double.NaN;
for(int i = 0; i < half; i++) {
if (i == 0) {
input[half] = 1.0;
! up = FpUtils.nextUp(1.0);
down = FpUtils.nextDown(1.0);
} else {
input[half + i] = up;
input[half - i] = down;
! up = FpUtils.nextUp(up);
down = FpUtils.nextDown(down);
}
}
input[0] = FpUtils.nextDown(input[1]);
--- 151,166 ----
double up = Double.NaN;
double down = Double.NaN;
for(int i = 0; i < half; i++) {
if (i == 0) {
input[half] = 1.0;
! up = Math.nextUp(1.0);
down = FpUtils.nextDown(1.0);
} else {
input[half + i] = up;
input[half - i] = down;
! up = Math.nextUp(up);
down = FpUtils.nextDown(down);
}
}
input[0] = FpUtils.nextDown(input[1]);