MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / clearAll

Method clearAll

Engine/source/ts/tsIntegerSet.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#define SETUPTO(upto) ( ((1<<(upto&31))-1)*2+1 ) // careful not to shift more than 31 times
28
29void TSIntegerSet::clearAll(S32 upto)
30{
31 AssertFatal(upto<=MAX_TS_SET_SIZE,"TSIntegerSet::clearAll: out of range");
32
33 dMemset(bits,0,(upto>>5)*4);
34 if (upto&31)
35 bits[upto>>5] &= ~SETUPTO(upto);
36}
37
38void TSIntegerSet::setAll(S32 upto)
39{

Callers 6

animateNodesMethod · 0.45
clearTransitionMethod · 0.45
addSequenceMethod · 0.45
setNodeMembershipMethod · 0.45
setObjectMembershipMethod · 0.45

Calls 1

dMemsetFunction · 0.50

Tested by

no test coverage detected