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

Method testAll

Engine/source/ts/tsIntegerSet.cpp:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool TSIntegerSet::testAll(S32 upto) const
48{
49 AssertFatal(upto<=MAX_TS_SET_SIZE,"TSIntegerSet::testAll: out of range");
50 S32 i;
51 for (i=0; i<(upto>>5); i++)
52 if (bits[i])
53 return true;
54 if (upto&31)
55 return (bits[upto>>5] & SETUPTO(upto)) != 0;
56 return false;
57}
58
59S32 TSIntegerSet::count(S32 upto) const
60{

Callers 3

readMethod · 0.45
addSequenceMethod · 0.45
generateSequencesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected