Home
last modified time | relevance | path

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

/system/core/libutils/include/utils/
DBitSet.h174 struct BitSet64 { struct
177 inline BitSet64() : value(0ULL) { } in BitSet64() function
178 explicit inline BitSet64(uint64_t value) : value(value) { } in BitSet64() argument
181 static inline uint64_t valueForBit(uint32_t n) { return 0x8000000000000000ULL >> n; } in valueForBit()
184 inline void clear() { clear(value); } in clear()
186 static inline void clear(uint64_t& value) { value = 0ULL; } in clear()
189 inline uint32_t count() const { return count(value); } in count()
191 static inline uint32_t count(uint64_t value) { return __builtin_popcountll(value); } in count()
194 inline bool isEmpty() const { return isEmpty(value); } in isEmpty()
196 static inline bool isEmpty(uint64_t value) { return ! value; } in isEmpty()
[all …]