Home
last modified time | relevance | path

Searched refs:valueForBit (Results 1 – 1 of 1) sorted by relevance

/system/core/libutils/include/utils/
DBitSet.h39 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000UL >> n; } in valueForBit() function
64 static inline bool hasBit(uint32_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
69 static inline void markBit (uint32_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
74 static inline void clearBit(uint32_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
181 static inline uint64_t valueForBit(uint32_t n) { return 0x8000000000000000ULL >> n; } in valueForBit() function
206 static inline bool hasBit(uint64_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
211 static inline void markBit(uint64_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
216 static inline void clearBit(uint64_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()