mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2024-11-24 06:59:40 +00:00
fixed seed space reduction
thanks to @easyaspi314
This commit is contained in:
parent
ee460fdbbb
commit
8d80010b7b
2
xxh3.h
2
xxh3.h
@ -574,7 +574,7 @@ XXH3_len_4to8_64b(const xxh_u8* input, size_t len, const xxh_u8* secret, XXH64_h
|
||||
XXH_ASSERT(input != NULL);
|
||||
XXH_ASSERT(secret != NULL);
|
||||
XXH_ASSERT(4 <= len && len < 8);
|
||||
seed ^= XXH_swap64(seed);
|
||||
seed ^= seed << 32;
|
||||
{ xxh_u32 const input1 = XXH_readLE32(input);
|
||||
xxh_u32 const input2 = XXH_readLE32(input + len - 4);
|
||||
xxh_u32 const key1 = XXH_swap32(input1) ^ ((xxh_u32)(seed >> 32) + XXH_readLE32(secret));
|
||||
|
Loading…
Reference in New Issue
Block a user