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

Method count

Engine/source/ts/tsIntegerSet.cpp:59–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59S32 TSIntegerSet::count(S32 upto) const
60{
61 AssertFatal(upto<=MAX_TS_SET_SIZE,"TSIntegerSet::count: out of range");
62
63 S32 count = 0;
64 U32 dword = bits[0];
65 for (S32 i = 0; i < upto; i++)
66 {
67 // get next word
68 if (!(i & 0x1F))
69 dword = bits[i>>5];
70 // test bits in word
71 if (dword & (1 << (i & 0x1F)))
72 count++;
73 }
74 return count;
75}
76
77void TSIntegerSet::intersect(const TSIntegerSet & otherSet)
78{

Callers 15

getElementCountMethod · 0.45
getElementMethod · 0.45
GetSourcedvFunction · 0.45
GetSourcei64vFunction · 0.45
MainWindowMethod · 0.45
collectHrtfsMethod · 0.45
loadConfigMethod · 0.45
saveConfigMethod · 0.45
getSyncMethod · 0.45
handlerMethod · 0.45
alffplay.cppFile · 0.45

Calls

no outgoing calls

Tested by 7

MatchesNameMethod · 0.36
ElapsedMethod · 0.36
GetTimeInMillisFunction · 0.36
RegisterTestsMethod · 0.36
TestExistsFunction · 0.36