MCPcopy Create free account
hub / github.com/defold/defold / IncreaseTableCapacity

Function IncreaseTableCapacity

engine/dlib/src/dlib/hash.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template<typename TABLE>
36static void IncreaseTableCapacity(TABLE* table, uint32_t increment)
37{
38 uint32_t capacity = table->Capacity() + increment;
39 table->SetCapacity((capacity*5)/7, capacity);
40}
41
42struct ReverseHashContainer
43{

Callers 5

EnableMethod · 0.85
dmHashBuffer32Function · 0.85
dmHashBuffer64Function · 0.85
dmHashFinal32Function · 0.85
dmHashFinal64Function · 0.85

Calls 2

CapacityMethod · 0.45
SetCapacityMethod · 0.45

Tested by

no test coverage detected