Home
last modified time | relevance | path

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

/system/core/libutils/include/utils/
DBitSet.h42 static inline uint32_t valueForBit(uint32_t n) { return 0x80000000UL >> n; } in valueForBit() function
69 static inline bool hasBit(uint32_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
74 static inline void markBit (uint32_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
79 static inline void clearBit(uint32_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
186 static inline uint64_t valueForBit(uint32_t n) { return 0x8000000000000000ULL >> n; } in valueForBit() function
213 static inline bool hasBit(uint64_t value, uint32_t n) { return value & valueForBit(n); } in hasBit()
218 static inline void markBit(uint64_t& value, uint32_t n) { value |= valueForBit(n); } in markBit()
223 static inline void clearBit(uint64_t& value, uint32_t n) { value &= ~ valueForBit(n); } in clearBit()
/system/core/libutils/
DBitSet_fuzz.cpp29 [](T bs, uint32_t val) -> void { bs.valueForBit(val); }, in getOperationsForType()