MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / _hash

Method _hash

modules/gui/gui/src/backend/text_server/hash_set.h:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 uint32_t num_elements = 0;
66
67 _FORCE_INLINE_ uint32_t _hash(const TKey& p_key) const
68 {
69 uint32_t hash = Hasher::hash(p_key);
70
71 if (unlikely(hash == EMPTY_HASH))
72 {
73 hash = EMPTY_HASH + 1;
74 }
75
76 return hash;
77 }
78
79 static _FORCE_INLINE_ uint32_t _get_probe_length(const uint32_t p_pos, const uint32_t p_hash, const uint32_t p_capacity, const uint64_t p_capacity_inv)
80 {

Callers

nothing calls this directly

Calls 1

hashFunction · 0.50

Tested by

no test coverage detected