MCPcopy Create free account
hub / github.com/diasurgical/devilution / GetNecessaryBitCount

Function GetNecessaryBitCount

3rdParty/StormLib/src/SBaseFileTable.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static DWORD GetNecessaryBitCount(ULONGLONG MaxValue)
47{
48 DWORD dwBitCount = 0;
49
50 while(MaxValue > 0)
51 {
52 MaxValue >>= 1;
53 dwBitCount++;
54 }
55
56 return dwBitCount;
57}
58
59//-----------------------------------------------------------------------------
60// Support functions for BIT_ARRAY

Callers 3

CreateHetTableFunction · 0.85
TranslateHetTableFunction · 0.85
CreateBetHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected