MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / getNext

Method getNext

deps/physx/physx/source/common/src/CmBitMap.h:402–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 }
401
402 PX_INLINE PxU32 getNext()
403 {
404 if (mBlock)
405 {
406 PxU32 bitIndex = mIndex << 5 | Ps::lowestSetBit(mBlock);
407 mBlock &= mBlock - 1;
408 PxU32 wordCount = mBitMap.getWordCount();
409 while (!mBlock && (mIndex = ((mIndex+1)%wordCount)) != mStartIndex)
410 mBlock = mBitMap.mMap[mIndex];
411 return bitIndex;
412 }
413 return DONE;
414 }
415
416 private:
417 PxU32 mBlock, mIndex;

Callers

nothing calls this directly

Calls 1

lowestSetBitFunction · 0.85

Tested by

no test coverage detected