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

Method getNext

physx/source/common/src/CmBitMap.h:314–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312 }
313
314 PX_INLINE PxU32 getNext()
315 {
316 if(mBlock)
317 {
318 PxU32 bitIndex = mIndex<<5 | Ps::lowestSetBit(mBlock);
319 mBlock &= mBlock-1;
320 PxU32 wordCount = mBitMap.getWordCount();
321 while(!mBlock && ++mIndex < wordCount)
322 mBlock = mBitMap.mMap[mIndex];
323 return bitIndex;
324 }
325 return DONE;
326 }
327
328 PX_INLINE void reset()
329 {

Callers

nothing calls this directly

Calls 1

lowestSetBitFunction · 0.85

Tested by

no test coverage detected