jdk/test/java/lang/Math/Log10Tests.java
changeset 10598 efd29b4b3e67
parent 5506 202f599c92aa
child 10608 7cfca36fc79b
equal deleted inserted replaced
10597:dac7cfce953a 10598:efd29b4b3e67
   151             double up = Double.NaN;
   151             double up = Double.NaN;
   152             double down = Double.NaN;
   152             double down = Double.NaN;
   153             for(int i = 0; i < half; i++) {
   153             for(int i = 0; i < half; i++) {
   154                 if (i == 0) {
   154                 if (i == 0) {
   155                     input[half] = 1.0;
   155                     input[half] = 1.0;
   156                     up   = FpUtils.nextUp(1.0);
   156                     up   = Math.nextUp(1.0);
   157                     down = FpUtils.nextDown(1.0);
   157                     down = FpUtils.nextDown(1.0);
   158                 } else {
   158                 } else {
   159                     input[half + i] = up;
   159                     input[half + i] = up;
   160                     input[half - i] = down;
   160                     input[half - i] = down;
   161                     up   = FpUtils.nextUp(up);
   161                     up   = Math.nextUp(up);
   162                     down = FpUtils.nextDown(down);
   162                     down = FpUtils.nextDown(down);
   163                 }
   163                 }
   164             }
   164             }
   165             input[0] = FpUtils.nextDown(input[1]);
   165             input[0] = FpUtils.nextDown(input[1]);
   166 
   166