mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 12:59:41 -07:00
remove redundant incs of xxhash - undef cpuid macro before xxhash is
included, so that we don't have conflicting definitions due to memfun
This commit is contained in:
1 parent
28d037a924
commit
e2430fa23e
6 files changed
+6
-35
No files matched your search
@@ -7,23 +7,10 @@
|
||||
////////////////////////////////
|
||||
//~ rjf: Basic Helpers
|
||||
|
||||
#if !defined(XXH_IMPLEMENTATION)
|
||||
# define XXH_IMPLEMENTATION
|
||||
# define XXH_STATIC_LINKING_ONLY
|
||||
# include "third_party/xxHash/xxhash.h"
|
||||
#endif
|
||||
|
||||
internal U64
|
||||
d_hash_from_seed_string(U64 seed, String8 string)
|
||||
{
|
||||
U64 result = XXH3_64bits_withSeed(string.str, string.size, seed);
|
||||
return result;
|
||||
}
|
||||
|
||||
internal U64
|
||||
d_hash_from_string(String8 string)
|
||||
{
|
||||
return d_hash_from_seed_string(5381, string);
|
||||
return u64_hash_from_seed_str8(5381, string);
|
||||
}
|
||||
|
||||
internal U64
|
||||
|
||||
@@ -391,7 +391,6 @@ global D_UserState *d_user_state = 0;
|
||||
////////////////////////////////
|
||||
//~ rjf: Basic Helpers
|
||||
|
||||
internal U64 d_hash_from_seed_string(U64 seed, String8 string);
|
||||
internal U64 d_hash_from_string(String8 string);
|
||||
internal U64 d_hash_from_seed_string__case_insensitive(U64 seed, String8 string);
|
||||
internal U64 d_hash_from_string__case_insensitive(String8 string);
|
||||
|
||||
Reference in new issue
Block a user