flatten 20260225
This commit is contained in:
23
tjp/core/hash/Hash.cpp
Executable file
23
tjp/core/hash/Hash.cpp
Executable file
@@ -0,0 +1,23 @@
|
||||
// TJP COPYRIGHT HEADER
|
||||
|
||||
#include "Hash.h"
|
||||
#include "fasthash.h"
|
||||
|
||||
namespace tjp {
|
||||
namespace core {
|
||||
|
||||
u32 hash32(const u8 *begin, size_t size)
|
||||
{
|
||||
static u32 seed = 0x026f23a;
|
||||
return fasthash32(begin, size, seed);
|
||||
}
|
||||
|
||||
u64 hash64(const u8 *begin, size_t size)
|
||||
{
|
||||
static u32 seed = 0x026f23a;
|
||||
return fasthash64(begin, size, seed);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user