Lines Matching defs:BitSet64
179 struct BitSet64 { struct
182 inline BitSet64() : value(0ULL) { } in BitSet64() argument
183 explicit inline BitSet64(uint64_t value) : value(value) { } in BitSet64() argument
186 static inline uint64_t valueForBit(uint32_t n) { return 0x8000000000000000ULL >> n; } in valueForBit()
189 inline void clear() { clear(value); } in clear()
191 static inline void clear(uint64_t& value) { value = 0ULL; } in clear()
194 inline uint32_t count() const { return count(value); } in count()
196 static inline uint32_t count(uint64_t value) { in count()
201 inline bool isEmpty() const { return isEmpty(value); } in isEmpty()
203 static inline bool isEmpty(uint64_t value) { return ! value; } in isEmpty()
206 inline bool isFull() const { return isFull(value); } in isFull()
208 static inline bool isFull(uint64_t value) { return value == 0xffffffffffffffffULL; } in isFull()
211 inline bool hasBit(uint32_t n) const { return hasBit(value, n); } in hasBit()
213 static inline bool hasBit(uint64_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
216 inline void markBit(uint32_t n) { markBit(value, n); } in markBit()
218 static inline void markBit(uint64_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
221 inline void clearBit(uint32_t n) { clearBit(value, n); } in clearBit()
223 static inline void clearBit(uint64_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
227 inline uint32_t firstMarkedBit() const { return firstMarkedBit(value); } in firstMarkedBit()
229 static inline uint32_t firstMarkedBit(uint64_t value) { in firstMarkedBit()
235 inline uint32_t firstUnmarkedBit() const { return firstUnmarkedBit(value); } in firstUnmarkedBit()
237 static inline uint32_t firstUnmarkedBit(uint64_t value) { in firstUnmarkedBit()
243 inline uint32_t lastMarkedBit() const { return lastMarkedBit(value); } in lastMarkedBit()
245 static inline uint32_t lastMarkedBit(uint64_t value) { in lastMarkedBit()
251 inline uint32_t clearFirstMarkedBit() { return clearFirstMarkedBit(value); } in clearFirstMarkedBit()
253 static inline uint32_t clearFirstMarkedBit(uint64_t& value) { in clearFirstMarkedBit()
261 inline uint32_t markFirstUnmarkedBit() { return markFirstUnmarkedBit(value); } in markFirstUnmarkedBit()
263 static inline uint32_t markFirstUnmarkedBit(uint64_t& value) { in markFirstUnmarkedBit()
287 inline bool operator== (const BitSet64& other) const { return value == other.value; } argument