Loading include/utils/BitSet.h +3 −0 Original line number Original line Diff line number Diff line Loading @@ -44,6 +44,9 @@ struct BitSet32 { // Returns true if the bit set does not contain any marked bits. // Returns true if the bit set does not contain any marked bits. inline bool isEmpty() const { return ! value; } inline bool isEmpty() const { return ! value; } // Returns true if the bit set does not contain any unmarked bits. inline bool isFull() const { return value == 0xffffffff; } // Returns true if the specified bit is marked. // Returns true if the specified bit is marked. inline bool hasBit(uint32_t n) const { return value & valueForBit(n); } inline bool hasBit(uint32_t n) const { return value & valueForBit(n); } Loading Loading
include/utils/BitSet.h +3 −0 Original line number Original line Diff line number Diff line Loading @@ -44,6 +44,9 @@ struct BitSet32 { // Returns true if the bit set does not contain any marked bits. // Returns true if the bit set does not contain any marked bits. inline bool isEmpty() const { return ! value; } inline bool isEmpty() const { return ! value; } // Returns true if the bit set does not contain any unmarked bits. inline bool isFull() const { return value == 0xffffffff; } // Returns true if the specified bit is marked. // Returns true if the specified bit is marked. inline bool hasBit(uint32_t n) const { return value & valueForBit(n); } inline bool hasBit(uint32_t n) const { return value & valueForBit(n); } Loading