jdk/src/share/classes/sun/misc/FloatingDecimal.java
changeset 8189 5fd29d2cbc4b
parent 5506 202f599c92aa
child 9035 1255eb81cc2f
equal deleted inserted replaced
8188:b90884cf34f5 8189:5fd29d2cbc4b
  1545                 int cmpResult;
  1545                 int cmpResult;
  1546                 boolean overvalue;
  1546                 boolean overvalue;
  1547                 if ( (cmpResult = bigB.cmp( bigD ) ) > 0 ){
  1547                 if ( (cmpResult = bigB.cmp( bigD ) ) > 0 ){
  1548                     overvalue = true; // our candidate is too big.
  1548                     overvalue = true; // our candidate is too big.
  1549                     diff = bigB.sub( bigD );
  1549                     diff = bigB.sub( bigD );
  1550                     if ( (bigIntNBits == 1) && (bigIntExp > -expBias) ){
  1550                     if ( (bigIntNBits == 1) && (bigIntExp > -expBias+1) ){
  1551                         // candidate is a normalized exact power of 2 and
  1551                         // candidate is a normalized exact power of 2 and
  1552                         // is too big. We will be subtracting.
  1552                         // is too big. We will be subtracting.
  1553                         // For our purposes, ulp is the ulp of the
  1553                         // For our purposes, ulp is the ulp of the
  1554                         // next smaller range.
  1554                         // next smaller range.
  1555                         Ulp2 -= 1;
  1555                         Ulp2 -= 1;