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

Function andNibbleFast

physx/source/common/src/CmBitMap.h:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 }
158
159 PX_INLINE void andNibbleFast(PxU32 nibIndex, PxU32 mask)
160 {
161 //TODO: there has to be a faster way...
162 PxU32 bitIndex = nibIndex << 2;
163 PxU32 shift = (bitIndex & 31);
164 PxU32 nibMask = 0xf << shift;
165
166 PX_ASSERT(bitIndex < getWordCount()*32);
167
168 mMap[bitIndex >> 5] &= ((mask << shift) | ~nibMask);
169 }
170
171 PX_INLINE void orNibbleFast(PxU32 nibIndex, PxU32 mask)
172 {

Callers

nothing calls this directly

Calls 1

getWordCountFunction · 0.85

Tested by

no test coverage detected