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

Method getIndexOfBit

binderlib/include_android9/utils/BitSet.h:268–268  ·  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

266 // Gets the index of the specified bit in the set, which is the number of
267 // marked bits that appear before the specified bit.
268 inline uint32_t getIndexOfBit(uint32_t n) const { return getIndexOfBit(value, n); }
269
270 static inline uint32_t getIndexOfBit(uint64_t value, uint32_t n) {
271 return __builtin_popcountll(value & ~(0xffffffffffffffffULL >> n));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected