| 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 | { |
nothing calls this directly
no test coverage detected