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

Method lastMarkedBit

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

Finds the last marked bit in the set. Result is undefined if all bits are unmarked.

Source from the content-addressed store, hash-verified

88 // Finds the last marked bit in the set.
89 // Result is undefined if all bits are unmarked.
90 inline uint32_t lastMarkedBit() const { return lastMarkedBit(value); }
91
92 static inline uint32_t lastMarkedBit(uint32_t value) { return 31 - ctz_checked(value); }
93

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected