MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / next

Method next

Engine/source/ts/tsIntegerSet.cpp:169–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void TSIntegerSet::next(S32 & i) const
170{
171 i++;
172 U32 idx = i>>5;
173 U32 bit = 1 << (i&31);
174 U32 dword = bits[idx] & ~(bit-1);
175 while (dword==0)
176 {
177 i = (i+32) & ~31;
178 if (i>=MAX_TS_SET_SIZE)
179 return;
180 dword=bits[++idx];
181 bit = 1;
182 }
183 dword = bits[idx];
184 while ( (bit & dword) == 0)
185 {
186 bit <<= 1;
187 i++;
188 }
189}
190
191/* Or would one byte at a time be better...
192void TSIntegerSet::next(S32 & i)

Callers 9

animateNodesMethod · 0.45
handleTransitionNodesMethod · 0.45
handleAnimatedScaleMethod · 0.45
handleBlendSequenceMethod · 0.45
animateVisibilityMethod · 0.45
animateFrameMethod · 0.45
animateMatFrameMethod · 0.45
setSequenceBlendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected