Searched defs:HashMapHasherDefault (Results 1 – 4 of 4) sorted by relevance
135 struct HashMapHasherDefault { struct137 static _FORCE_INLINE_ uint32_t hash(const String &p_string) { return p_string.hash(); } in hash()138 static _FORCE_INLINE_ uint32_t hash(const char *p_cstr) { return hash_djb2(p_cstr); } in hash()144 static _FORCE_INLINE_ uint32_t hash(const uint32_t p_int) { return p_int; } in hash()145 static _FORCE_INLINE_ uint32_t hash(const int32_t p_int) { return (uint32_t)p_int; } in hash()146 static _FORCE_INLINE_ uint32_t hash(const uint16_t p_int) { return p_int; } in hash()147 static _FORCE_INLINE_ uint32_t hash(const int16_t p_int) { return (uint32_t)p_int; } in hash()148 static _FORCE_INLINE_ uint32_t hash(const uint8_t p_int) { return p_int; } in hash()149 static _FORCE_INLINE_ uint32_t hash(const int8_t p_int) { return (uint32_t)p_int; } in hash()150 static _FORCE_INLINE_ uint32_t hash(const wchar_t p_wchar) { return (uint32_t)p_wchar; } in hash()[all …]
39 struct HashMapHasherDefault { struct40 static _FORCE_INLINE_ uint32_t hash(const String &p_string) { return p_string.hash(); } in hash()41 static _FORCE_INLINE_ uint32_t hash(const char *p_cstr) { return hash_djb2(p_cstr); } in hash()44 static _FORCE_INLINE_ uint32_t hash(const int64_t p_int) { return hash(uint64_t(p_int)); } in hash()47 static _FORCE_INLINE_ uint32_t hash(const uint32_t p_int) { return p_int; } in hash()48 static _FORCE_INLINE_ uint32_t hash(const int32_t p_int) { return (uint32_t)p_int; } in hash()49 static _FORCE_INLINE_ uint32_t hash(const uint16_t p_int) { return p_int; } in hash()50 static _FORCE_INLINE_ uint32_t hash(const int16_t p_int) { return (uint32_t)p_int; } in hash()51 static _FORCE_INLINE_ uint32_t hash(const uint8_t p_int) { return p_int; } in hash()52 static _FORCE_INLINE_ uint32_t hash(const int8_t p_int) { return (uint32_t)p_int; } in hash()[all …]