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

lib/Support/APInt.cpp

index 369ded7cf142200b5a5fc7a8b6f86b14065c34c2..7a1598a401e2bac8bc3d252d68e7f30d8b31193d 100644 (file)
@@ -1302,7 +1302,7 @@ static void KnuthDiv(uint32_t *u, uint32_t *v, uint32_t *q, uint32_t* r,
     //     Set qp = (u[j+n]*b + u[j+n-1]) / v[n-1]. (qp=qprime=q')
     //     Set rp = (u[j+n]*b + u[j+n-1]) % v[n-1]. (rp=rprime=r')
     // Now test if qp == b or qp*v[n-2] > b*rp + u[j+n-2]; if so, decrease
-    // qp by 1, inrease rp by v[n-1], and repeat this test if rp < b. The test
+    // qp by 1, increase rp by v[n-1], and repeat this test if rp < b. The test
     // on v[n-2] determines at high speed most of the cases in which the trial
     // value qp is one too large, and it eliminates all cases where qp is two
     // too large.