mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
21 lines
358 B
C
21 lines
358 B
C
|
#pragma once
|
||
|
#include <stdint.h>
|
||
|
|
||
|
uint32_t SuperFastHash (const char *data, size_t len);
|
||
|
uint32_t SuperFastHashI (const char *data, size_t len);
|
||
|
|
||
|
inline unsigned int MakeKey(const char* s)
|
||
|
{
|
||
|
if (s == NULL)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
return SuperFastHashI(s, strlen(s));
|
||
|
}
|
||
|
|
||
|
inline unsigned int MakeKey(const char* s, size_t len)
|
||
|
{
|
||
|
return SuperFastHashI(s, len);
|
||
|
}
|
||
|
|