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

Function orNibbleFast

physx/source/common/src/CmBitMap.h:171–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169 }
170
171 PX_INLINE void orNibbleFast(PxU32 nibIndex, PxU32 mask)
172 {
173 PX_ASSERT(!(mask & ~0xf)); //check extra bits are not set
174
175 PxU32 bitIndex = nibIndex << 2;
176 PxU32 shift = bitIndex & 31;
177
178 PX_ASSERT(bitIndex < getWordCount()*32);
179
180 mMap[bitIndex >> 5] |= (mask << shift);
181 }
182
183 void clear()
184 {

Callers

nothing calls this directly

Calls 1

getWordCountFunction · 0.85

Tested by

no test coverage detected