mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add isStrictPositive() to APInt to determine if this APInt Value > 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79b098445b
commit
fdcd5a7740
@ -374,6 +374,12 @@ public:
|
|||||||
return !isNegative();
|
return !isNegative();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// This just tests if the value of this APInt is strictly positive (> 0).
|
||||||
|
/// @brief Determine if this APInt Value is strictly positive.
|
||||||
|
inline bool isStrictPositive() const {
|
||||||
|
return isPositive() && (*this) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
/// Arithmetic right-shift this APInt by shiftAmt.
|
/// Arithmetic right-shift this APInt by shiftAmt.
|
||||||
/// @brief Arithmetic right-shift function.
|
/// @brief Arithmetic right-shift function.
|
||||||
APInt ashr(uint32_t shiftAmt) const;
|
APInt ashr(uint32_t shiftAmt) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user