Home
last modified time | relevance | path

Searched defs:BitSet64 (Results 1 – 1 of 1) sorted by relevance

/system/core/libutils/include/utils/
DBitSet.h172 struct BitSet64 { struct
175 inline BitSet64() : value(0ULL) { } in BitSet64() argument
176 explicit inline BitSet64(uint64_t value) : value(value) { } in BitSet64() function
179 static inline uint64_t valueForBit(uint32_t n) { return 0x8000000000000000ULL >> n; } in valueForBit()
182 inline void clear() { clear(value); } in clear()
184 static inline void clear(uint64_t& value) { value = 0ULL; } in clear()
187 inline uint32_t count() const { return count(value); } in count()
189 static inline uint32_t count(uint64_t value) { return __builtin_popcountll(value); } in count()
192 inline bool isEmpty() const { return isEmpty(value); } in isEmpty()
194 static inline bool isEmpty(uint64_t value) { return ! value; } in isEmpty()
[all …]