Lines Matching refs:n
42 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000UL >> n; } in valueForBit()
67 inline bool hasBit(uint32_t n) const { return hasBit(value, n); } in hasBit()
69 static inline bool hasBit(uint32_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
72 inline void markBit(uint32_t n) { markBit(value, n); } in markBit()
74 static inline void markBit (uint32_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
77 inline void clearBit(uint32_t n) { clearBit(value, n); } in clearBit()
79 static inline void clearBit(uint32_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
104 uint32_t n = firstMarkedBit(value); in clearFirstMarkedBit() local
105 clearBit(value, n); in clearFirstMarkedBit()
106 return n; in clearFirstMarkedBit()
114 uint32_t n = firstUnmarkedBit(value); in markFirstUnmarkedBit() local
115 markBit(value, n); in markFirstUnmarkedBit()
116 return n; in markFirstUnmarkedBit()
124 uint32_t n = lastMarkedBit(value); in clearLastMarkedBit() local
125 clearBit(value, n); in clearLastMarkedBit()
126 return n; in clearLastMarkedBit()
131 inline uint32_t getIndexOfBit(uint32_t n) const { in getIndexOfBit()
132 return getIndexOfBit(value, n); in getIndexOfBit()
135 static inline uint32_t getIndexOfBit(uint32_t value, uint32_t n) { in getIndexOfBit()
136 return static_cast<uint32_t>(__builtin_popcountl(value & ~(0xffffffffUL >> n))); in getIndexOfBit()
186 static inline uint64_t valueForBit(uint32_t n) { return 0x8000000000000000ULL >> n; } in valueForBit()
211 inline bool hasBit(uint32_t n) const { return hasBit(value, n); } in hasBit()
213 static inline bool hasBit(uint64_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
216 inline void markBit(uint32_t n) { markBit(value, n); } in markBit()
218 static inline void markBit(uint64_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
221 inline void clearBit(uint32_t n) { clearBit(value, n); } in clearBit()
223 static inline void clearBit(uint64_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
254 uint32_t n = firstMarkedBit(value); in clearFirstMarkedBit() local
255 clearBit(value, n); in clearFirstMarkedBit()
256 return n; in clearFirstMarkedBit()
264 uint32_t n = firstUnmarkedBit(value); in markFirstUnmarkedBit() local
265 markBit(value, n); in markFirstUnmarkedBit()
266 return n; in markFirstUnmarkedBit()
274 uint32_t n = lastMarkedBit(value); in clearLastMarkedBit() local
275 clearBit(value, n); in clearLastMarkedBit()
276 return n; in clearLastMarkedBit()
281 inline uint32_t getIndexOfBit(uint32_t n) const { return getIndexOfBit(value, n); } in getIndexOfBit()
283 static inline uint32_t getIndexOfBit(uint64_t value, uint32_t n) { in getIndexOfBit()
284 return static_cast<uint32_t>(__builtin_popcountll(value & ~(0xffffffffffffffffULL >> n))); in getIndexOfBit()