Lines Matching refs:uint32_t
31 uint32_t value;
34 explicit inline BitSet32(uint32_t value) : value(value) { }
37 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000 >> n; }
43 inline uint32_t count() const { return __builtin_popcount(value); }
52 inline bool hasBit(uint32_t n) const { return value & valueForBit(n); }
55 inline void markBit(uint32_t n) { value |= valueForBit(n); }
58 inline void clearBit(uint32_t n) { value &= ~ valueForBit(n); }
62 inline uint32_t firstMarkedBit() const { return __builtin_clz(value); }
66 inline uint32_t firstUnmarkedBit() const { return __builtin_clz(~ value); }
70 inline uint32_t lastMarkedBit() const { return 31 - __builtin_ctz(value); }
74 inline uint32_t clearFirstMarkedBit() {
75 uint32_t n = firstMarkedBit();
82 inline uint32_t markFirstUnmarkedBit() {
83 uint32_t n = firstUnmarkedBit();
90 inline uint32_t clearLastMarkedBit() {
91 uint32_t n = lastMarkedBit();
98 inline uint32_t getIndexOfBit(uint32_t n) const {