llvm.org GIT mirror llvm / 3daa11c
[APInt] Fix typo in comment. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302815 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11371137 return APInt(BitWidth, 0);
11381138
11391139 // The next-to-last t is the multiplicative inverse. However, we are
1140 // interested in a positive inverse. Calcuate a positive one from a negative
1140 // interested in a positive inverse. Calculate a positive one from a negative
11411141 // one if necessary. A simple addition of the modulo suffices because
11421142 // abs(t[i]) is known to be less than *this/2 (see the link above).
11431143 return t[i].isNegative() ? t[i] + modulo : t[i];