Home
last modified time | relevance | path

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

/external/chromium_org/ui/events/gesture_detection/
Dbitset_32.h16 struct BitSet32 { struct
19 inline BitSet32() : value(0) {} in BitSet32() argument
20 explicit inline BitSet32(uint32_t value) : value(value) {} in BitSet32() function
23 static inline uint32_t value_for_bit(uint32_t n) { return 0x80000000 >> n; } in value_for_bit()
26 inline void clear() { value = 0; } in clear()
29 inline uint32_t count() const { return popcnt(value); } in count()
32 inline bool is_empty() const { return !value; } in is_empty()
35 inline bool is_full() const { return value == 0xffffffff; } in is_full()
38 inline bool has_bit(uint32_t n) const { in has_bit()
43 inline void mark_bit(uint32_t n) { value |= value_for_bit(n); } in mark_bit()
[all …]