diff options
author | Miloš Stojanović <Milos.Stojanovic@rt-rk.com> | 2019-11-06 11:13:15 +0100 |
---|---|---|
committer | Miloš Stojanović <Milos.Stojanovic@rt-rk.com> | 2019-11-06 16:01:58 +0100 |
commit | 4601df7d6ac5919b33366078c643ab21f9f229cf (patch) | |
tree | 1773dc073be5d7835c740989ed243263d9da1c18 /llvm/lib/Support | |
parent | bcae3b04e8740e1a82567471df410a2fd8b72c3f (diff) | |
download | bcm5719-llvm-4601df7d6ac5919b33366078c643ab21f9f229cf.tar.gz bcm5719-llvm-4601df7d6ac5919b33366078c643ab21f9f229cf.zip |
[NFC][APInt] Fix typos in comments.
Testing git commit access.
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 5f2686c4055..431e2b70df0 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -187,7 +187,7 @@ APInt& APInt::operator--() { return clearUnusedBits(); } -/// Adds the RHS APint to this APInt. +/// Adds the RHS APInt to this APInt. /// @returns this, after addition of RHS. /// Addition assignment operator. APInt& APInt::operator+=(const APInt& RHS) { @@ -2830,7 +2830,7 @@ APInt llvm::APIntOps::RoundingSDiv(const APInt &A, const APInt &B, return Quo; return Quo + 1; } - // Currently sdiv rounds twards zero. + // Currently sdiv rounds towards zero. case APInt::Rounding::TOWARD_ZERO: return A.sdiv(B); } @@ -2973,7 +2973,7 @@ llvm::APIntOps::SolveQuadraticEquationWrap(APInt A, APInt B, APInt C, APInt Q = SQ * SQ; bool InexactSQ = Q != D; // The calculated SQ may actually be greater than the exact (non-integer) - // value. If that's the case, decremement SQ to get a value that is lower. + // value. If that's the case, decrement SQ to get a value that is lower. if (Q.sgt(D)) SQ -= 1; |