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

Function dmHashInit64

engine/dlib/src/dlib/hash.cpp:472–481  ·  view source on GitHub ↗

Based on CMurmurHash2A

Source from the content-addressed store, hash-verified

470
471// Based on CMurmurHash2A
472void dmHashInit64(HashState64* hash_state, bool reverse_hash)
473{
474 memset(hash_state, 0x0, sizeof(HashState64));
475 if(reverse_hash && dmHashContainer().m_Enabled)
476 {
477 DM_MUTEX_SCOPED_LOCK(dmHashContainer().m_Mutex);
478 uint32_t new_index = hash_state->m_ReverseHashEntryIndex = dmHashContainer().AllocReverseHashStatesSlot();
479 memset(&dmHashContainer().m_HashStates[new_index], 0x0, sizeof(ReverseHashEntry));
480 }
481}
482
483void dmHashClone64(HashState64* hash_state, const HashState64* source_hash_state, bool reverse_hash)
484{

Callers 15

InstanceMethod · 0.85
SpawnFunction · 0.85
AcquireResourcesFunction · 0.85
DrawFunction · 0.85
WriteEntryContextMethod · 0.85
BeginFunction · 0.85
GetFunction · 0.85
ReleaseFunction · 0.85
CalculateConnectionIDFunction · 0.85
TEST_FFunction · 0.85

Calls 1

Tested by 4

TEST_FFunction · 0.68
dmHashCTestIncrementalFunction · 0.68
TEST_FFunction · 0.68