mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-23 06:21:11 +00:00
[APInt] Implement operator! using operator==(uint64_t). NFCI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299293 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa958b2284
commit
ea476cb4cb
@ -627,13 +627,7 @@ public:
|
||||
///
|
||||
/// \returns true if *this is zero, false otherwise.
|
||||
bool operator!() const {
|
||||
if (isSingleWord())
|
||||
return !VAL;
|
||||
|
||||
for (unsigned i = 0; i != getNumWords(); ++i)
|
||||
if (pVal[i])
|
||||
return false;
|
||||
return true;
|
||||
return *this == 0;
|
||||
}
|
||||
|
||||
/// @}
|
||||
|
Loading…
x
Reference in New Issue
Block a user