llvm.org GIT mirror llvm / d1a23d5
If the power of 5 is exact, and the reciprocal exact, the error is zero not one half-ulps. This prevents an infinite loop in rare cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42950 91177308-0d34-0410-b5e6-96231b3b80d8 Neil Booth 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
19461946 excessPrecision = calcSemantics.precision;
19471947 }
19481948 /* Extra half-ulp lost in reciprocal of exponent. */
1949 powHUerr = 1 + powStatus != opOK;
1949 powHUerr = (powStatus == opOK && calcLostFraction == lfExactlyZero) ? 0: 2;
19501950 }
19511951
19521952 /* Both multiplySignificand and divideSignificand return the