[APInt] Fix typo in comment. NFC

llvm-svn: 302815
This commit is contained in:
Craig Topper 2017-05-11 17:57:43 +00:00
parent 47ccafe787
commit 3fbecadab6
1 changed files with 1 additions and 1 deletions

View File

@ -1138,7 +1138,7 @@ APInt APInt::multiplicativeInverse(const APInt& modulo) const {
return APInt(BitWidth, 0);
// The next-to-last t is the multiplicative inverse. However, we are
// interested in a positive inverse. Calcuate a positive one from a negative
// interested in a positive inverse. Calculate a positive one from a negative
// one if necessary. A simple addition of the modulo suffices because
// abs(t[i]) is known to be less than *this/2 (see the link above).
return t[i].isNegative() ? t[i] + modulo : t[i];