MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / getNext

Method getNext

physx/source/common/src/CmBitMap.h:403–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

lowestSetBitFunction · 0.85

Tested by

no test coverage detected