Searched defs:BitSet32 (Results 1 – 1 of 1) sorted by relevance
30 struct BitSet32 { struct33 inline BitSet32() : value(0UL) { } in BitSet32() argument34 explicit inline BitSet32(uint32_t value) : value(value) { } in BitSet32() argument37 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000UL >> n; } in valueForBit()40 inline void clear() { clear(value); } in clear()42 static inline void clear(uint32_t& value) { value = 0UL; } in clear()45 inline uint32_t count() const { return count(value); } in count()47 static inline uint32_t count(uint32_t value) { return __builtin_popcountl(value); } in count()50 inline bool isEmpty() const { return isEmpty(value); } in isEmpty()52 static inline bool isEmpty(uint32_t value) { return ! value; } in isEmpty()[all …]