]> granicus.if.org Git - llvm/commitdiff
[APInt] Fix typo in comment. NFC
authorCraig Topper <craig.topper@gmail.com>
Thu, 11 May 2017 17:57:43 +0000 (17:57 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 11 May 2017 17:57:43 +0000 (17:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302815 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/APInt.cpp

index 6b01c9bb2776f2e05bf75b9e938ea01a4c3a7738..0fade287d43e16ca8ebaed89ac88c13cc828bce1 100644 (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];