MEDIUM: xxhash: use the XXH3 functions to generate 64-bit hashes
Replace the XXH64() function calls with the XXH3 variant function
XXH3_64bits_withSeed() where possible.
diff --git a/src/51d.c b/src/51d.c
index 31d7c3f..fda0171 100644
--- a/src/51d.c
+++ b/src/51d.c
@@ -305,9 +305,9 @@
int i;
for(i = 0; i < ws->importantHeadersCount; i++) {
hash ^= ws->importantHeaders[i].header->headerNameOffset;
- hash ^= XXH64(ws->importantHeaders[i].headerValue,
- ws->importantHeaders[i].headerValueLength,
- seed);
+ hash ^= XXH3(ws->importantHeaders[i].headerValue,
+ ws->importantHeaders[i].headerValueLength,
+ seed);
}
return hash;
}
@@ -517,7 +517,7 @@
unsigned long long seed = _51d_lru_seed ^ (long)args;
HA_SPIN_LOCK(OTHER_LOCK, &_51d_lru_lock);
- lru = lru64_get(XXH64(smp->data.u.str.area, smp->data.u.str.data, seed),
+ lru = lru64_get(XXH3(smp->data.u.str.area, smp->data.u.str.data, seed),
_51d_lru_tree, (void*)args, 0);
if (lru && lru->domain) {
_51d_retrieve_cache_entry(smp, lru);