MCPcopy Create free account
hub / github.com/HexHive/NASS / getIndexOfBit

Method getIndexOfBit

binderlib/include_android9/utils/BitSet.h:126–128  ·  view source on GitHub ↗

Gets the index of the specified bit in the set, which is the number of marked bits that appear before the specified bit.

Source from the content-addressed store, hash-verified

124 // Gets the index of the specified bit in the set, which is the number of
125 // marked bits that appear before the specified bit.
126 inline uint32_t getIndexOfBit(uint32_t n) const {
127 return getIndexOfBit(value, n);
128 }
129
130 static inline uint32_t getIndexOfBit(uint32_t value, uint32_t n) {
131 return __builtin_popcountl(value & ~(0xffffffffUL >> n));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected