adding xxhash

This commit is contained in:
Patedam committed 2026-10-24 17:16:41 -04:00
1 parent 7e8e626e24
commit d5c6c79a76
3 files changed
+15 -4

No files matched your search

+2 -2
View File
@@ -4,6 +4,6 @@
[submodule "Juliet/external/stb"] [submodule "Juliet/external/stb"]
path = Juliet/external/stb path = Juliet/external/stb
url = https://github.com/nothings/stb.git url = https://github.com/nothings/stb.git
[submodule "Juliet/external/xxhash"] [submodule "Juliet/external/xxHash"]
path = Juliet/external/xxhash path = Juliet/external/xxHash
url = https://github.com/Cyan4973/xxHash.git url = https://github.com/Cyan4973/xxHash.git
+12 -2
View File
@@ -1,11 +1,21 @@
// ============================================================================= // =============================================================================
// Hash Functions // Hash Functions
#define HASH_STRING 4259 #pragma push_macro("__cpuid")
#undef __cpuid
#if !defined(XXH_IMPLEMENTATION)
# define XXH_INLINE_ALL
# define XXH_IMPLEMENTATION
# define XXH_STATIC_LINKING_ONLY
# include "external/xxHash/xxhash.h"
#endif
#pragma pop_macro("__cpuid")
#define HASH_SEED 4259
internal uint64 uint64_hash_from_string(String8 string) internal uint64 uint64_hash_from_string(String8 string)
{ {
uint64 result = uint64_hash_from_seed_string(HASH_STRING, string); uint64 result = uint64_hash_from_seed_string(HASH_SEED, string);
return result; return result;
} }
Vendored Submodule
+1
Submodule Juliet/external/xxHash added at d9dfb8203c.