equal
deleted
inserted
replaced
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; |