mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
[APInt] Implement AndAssignSlowCase using tcAnd. Do the same for Or and Xor. NFCI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2ea3d99e26
commit
e222bade09
@ -407,23 +407,17 @@ APInt& APInt::operator*=(const APInt& RHS) {
|
||||
}
|
||||
|
||||
APInt& APInt::AndAssignSlowCase(const APInt& RHS) {
|
||||
unsigned numWords = getNumWords();
|
||||
for (unsigned i = 0; i < numWords; ++i)
|
||||
pVal[i] &= RHS.pVal[i];
|
||||
tcAnd(pVal, RHS.pVal, getNumWords());
|
||||
return *this;
|
||||
}
|
||||
|
||||
APInt& APInt::OrAssignSlowCase(const APInt& RHS) {
|
||||
unsigned numWords = getNumWords();
|
||||
for (unsigned i = 0; i < numWords; ++i)
|
||||
pVal[i] |= RHS.pVal[i];
|
||||
tcOr(pVal, RHS.pVal, getNumWords());
|
||||
return *this;
|
||||
}
|
||||
|
||||
APInt& APInt::XorAssignSlowCase(const APInt& RHS) {
|
||||
unsigned numWords = getNumWords();
|
||||
for (unsigned i = 0; i < numWords; ++i)
|
||||
pVal[i] ^= RHS.pVal[i];
|
||||
tcXor(pVal, RHS.pVal, getNumWords());
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user