Lines Matching refs:n
36 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000 >> n; } in valueForBit()
51 inline bool hasBit(uint32_t n) const { return value & valueForBit(n); } in hasBit()
54 inline void markBit(uint32_t n) { value |= valueForBit(n); } in markBit()
57 inline void clearBit(uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
74 uint32_t n = firstMarkedBit(); in clearFirstMarkedBit() local
75 clearBit(n); in clearFirstMarkedBit()
76 return n; in clearFirstMarkedBit()
82 uint32_t n = firstUnmarkedBit(); in markFirstUnmarkedBit() local
83 markBit(n); in markFirstUnmarkedBit()
84 return n; in markFirstUnmarkedBit()
90 uint32_t n = lastMarkedBit(); in clearLastMarkedBit() local
91 clearBit(n); in clearLastMarkedBit()
92 return n; in clearLastMarkedBit()
97 inline uint32_t getIndexOfBit(uint32_t n) const { in getIndexOfBit()
98 return __builtin_popcount(value & ~(0xffffffffUL >> n)); in getIndexOfBit()