mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1860,7 +1860,7 @@ APInt APInt::udiv(const APInt& RHS) const {
|
||||
// 0 / X ===> 0
|
||||
return APInt(BitWidth, 0);
|
||||
else if (lhsWords < rhsWords || this->ult(RHS)) {
|
||||
// X / Y ===> 0, if X < Y
|
||||
// X / Y ===> 0, iff X < Y
|
||||
return APInt(BitWidth, 0);
|
||||
} else if (*this == RHS) {
|
||||
// X / X ===> 1
|
||||
@ -1897,7 +1897,7 @@ APInt APInt::urem(const APInt& RHS) const {
|
||||
// 0 % Y ===> 0
|
||||
return APInt(BitWidth, 0);
|
||||
} else if (lhsWords < rhsWords || this->ult(RHS)) {
|
||||
// X % Y ===> X, if X < Y
|
||||
// X % Y ===> X, iff X < Y
|
||||
return *this;
|
||||
} else if (*this == RHS) {
|
||||
// X % X == 0;
|
||||
@ -1929,8 +1929,8 @@ void APInt::udivrem(const APInt &LHS, const APInt &RHS,
|
||||
}
|
||||
|
||||
if (lhsWords < rhsWords || LHS.ult(RHS)) {
|
||||
Remainder = LHS; // X % Y ===> X, if X < Y
|
||||
Quotient = 0; // X / Y ===> 0, if X < Y
|
||||
Remainder = LHS; // X % Y ===> X, iff X < Y
|
||||
Quotient = 0; // X / Y ===> 0, iff X < Y
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user