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

Function getNibbleFast

physx/source/common/src/CmBitMap.h:152–157  ·  view source on GitHub ↗

nibble == 4 bits

Source from the content-addressed store, hash-verified

150
151 // nibble == 4 bits
152 PX_INLINE PxU32 getNibbleFast(PxU32 nibIndex) const
153 {
154 PxU32 bitIndex = nibIndex << 2;
155 PX_ASSERT(bitIndex < getWordCount()*32);
156 return (mMap[bitIndex >> 5] >> (bitIndex & 31)) & 0xf;
157 }
158
159 PX_INLINE void andNibbleFast(PxU32 nibIndex, PxU32 mask)
160 {

Callers

nothing calls this directly

Calls 1

getWordCountFunction · 0.85

Tested by

no test coverage detected