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

Function getIndOfNextRightmostZeroBit

quest/src/core/bitwise.hpp:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288INLINE int getIndOfNextRightmostZeroBit(qindex mask, int bitInd) {
289
290 bitInd++;
291 while (getBit(mask, bitInd))
292 bitInd++;
293
294 return bitInd;
295}
296
297
298INLINE bool allBitsAreOne(qindex number, int* bitIndices, int numIndices) {

Callers 1

Calls 1

getBitFunction · 0.85

Tested by

no test coverage detected