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

Method markFirstUnmarkedBit

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

Finds the first unmarked bit in the set and marks it. Returns the bit index. Result is undefined if all bits are marked.

Source from the content-addressed store, hash-verified

246 // Finds the first unmarked bit in the set and marks it. Returns the bit index.
247 // Result is undefined if all bits are marked.
248 inline uint32_t markFirstUnmarkedBit() { return markFirstUnmarkedBit(value); }
249
250 static inline uint32_t markFirstUnmarkedBit(uint64_t& value) {
251 uint64_t n = firstUnmarkedBit(value);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected