MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / getIndOfNextLeftmostZeroBit

Function getIndOfNextLeftmostZeroBit

quest/src/core/bitwise.hpp:278–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276
277
278INLINE int getIndOfNextLeftmostZeroBit(qindex mask, int bitInd) {
279
280 bitInd--;
281 while (getBit(mask, bitInd))
282 bitInd--;
283
284 return bitInd;
285}
286
287
288INLINE int getIndOfNextRightmostZeroBit(qindex mask, int bitInd) {

Callers 1

Calls 1

getBitFunction · 0.85

Tested by

no test coverage detected