Lines Matching refs:n
37 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000 >> n; } in valueForBit()
52 inline bool hasBit(uint32_t n) const { return value & valueForBit(n); } in hasBit()
55 inline void markBit(uint32_t n) { value |= valueForBit(n); } in markBit()
58 inline void clearBit(uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
75 uint32_t n = firstMarkedBit(); in clearFirstMarkedBit() local
76 clearBit(n); in clearFirstMarkedBit()
77 return n; in clearFirstMarkedBit()
83 uint32_t n = firstUnmarkedBit(); in markFirstUnmarkedBit() local
84 markBit(n); in markFirstUnmarkedBit()
85 return n; in markFirstUnmarkedBit()
91 uint32_t n = lastMarkedBit(); in clearLastMarkedBit() local
92 clearBit(n); in clearLastMarkedBit()
93 return n; in clearLastMarkedBit()
98 inline uint32_t getIndexOfBit(uint32_t n) const { in getIndexOfBit()
99 return __builtin_popcount(value & ~(0xffffffffUL >> n)); in getIndexOfBit()