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

Function count

physx/source/common/src/CmBitMap.h:224–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 PX_INLINE PxU32 count() const
225 {
226 // NOTE: we can probably do this faster, since the last steps in PxcBitCount32 can be defered to
227 // the end of the seq. + 64/128bits at a time + native bit counting instructions(360 is fast non micro code).
228 PxU32 count = 0;
229 PxU32 wordCount = getWordCount();
230 for(PxU32 i=0; i<wordCount; i++)
231 count += Ps::bitCount(mMap[i]);
232
233 return count;
234 }
235
236 PX_INLINE PxU32 count(PxU32 start, PxU32 length) const
237 {

Callers

nothing calls this directly

Calls 3

getWordCountFunction · 0.85
bitCountFunction · 0.85
PxMinFunction · 0.85

Tested by

no test coverage detected