mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Add an intersects method to APInt, to capture a common idiom.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45982a5364
commit
bd99917892
@ -778,6 +778,12 @@ public:
|
|||||||
return !slt(RHS);
|
return !slt(RHS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// This operation tests if there are any pairs of corresponding bits
|
||||||
|
/// between this APInt and RHS that are both set.
|
||||||
|
bool intersects(const APInt &RHS) const {
|
||||||
|
return (*this & RHS) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Resizing Operators
|
/// @name Resizing Operators
|
||||||
/// @{
|
/// @{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user