Lines Matching refs:n
37 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000UL >> n; } in valueForBit()
60 inline bool hasBit(uint32_t n) const { return hasBit(value, n); } in hasBit()
62 static inline bool hasBit(uint32_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
65 inline void markBit(uint32_t n) { markBit(value, n); } in markBit()
67 static inline void markBit (uint32_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
70 inline void clearBit(uint32_t n) { clearBit(value, n); } in clearBit()
72 static inline void clearBit(uint32_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
97 uint32_t n = firstMarkedBit(value); in clearFirstMarkedBit() local
98 clearBit(value, n); in clearFirstMarkedBit()
99 return n; in clearFirstMarkedBit()
107 uint32_t n = firstUnmarkedBit(value); in markFirstUnmarkedBit() local
108 markBit(value, n); in markFirstUnmarkedBit()
109 return n; in markFirstUnmarkedBit()
117 uint32_t n = lastMarkedBit(value); in clearLastMarkedBit() local
118 clearBit(value, n); in clearLastMarkedBit()
119 return n; in clearLastMarkedBit()
124 inline uint32_t getIndexOfBit(uint32_t n) const { in getIndexOfBit()
125 return getIndexOfBit(value, n); in getIndexOfBit()
128 static inline uint32_t getIndexOfBit(uint32_t value, uint32_t n) { in getIndexOfBit()
129 return __builtin_popcountl(value & ~(0xffffffffUL >> n)); in getIndexOfBit()
179 static inline uint64_t valueForBit(uint32_t n) { return 0x8000000000000000ULL >> n; } in valueForBit()
202 inline bool hasBit(uint32_t n) const { return hasBit(value, n); } in hasBit()
204 static inline bool hasBit(uint64_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
207 inline void markBit(uint32_t n) { markBit(value, n); } in markBit()
209 static inline void markBit(uint64_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
212 inline void clearBit(uint32_t n) { clearBit(value, n); } in clearBit()
214 static inline void clearBit(uint64_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
239 uint64_t n = firstMarkedBit(value); in clearFirstMarkedBit() local
240 clearBit(value, n); in clearFirstMarkedBit()
241 return n; in clearFirstMarkedBit()
249 uint64_t n = firstUnmarkedBit(value); in markFirstUnmarkedBit() local
250 markBit(value, n); in markFirstUnmarkedBit()
251 return n; in markFirstUnmarkedBit()
259 uint64_t n = lastMarkedBit(value); in clearLastMarkedBit() local
260 clearBit(value, n); in clearLastMarkedBit()
261 return n; in clearLastMarkedBit()
266 inline uint32_t getIndexOfBit(uint32_t n) const { return getIndexOfBit(value, n); } in getIndexOfBit()
268 static inline uint32_t getIndexOfBit(uint64_t value, uint32_t n) { in getIndexOfBit()
269 return __builtin_popcountll(value & ~(0xffffffffffffffffULL >> n)); in getIndexOfBit()