From 24ba4ba3adf96dc5f0902d81821c0a8dd12d3732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 26 Aug 2025 07:56:03 +0200 Subject: [PATCH] Update fxhash constants The fxhash implementation was missing a constant for 32-bit platforms. This has been fixed. Constant for 64-bit platform was update to match the current Rust constants. --- lib/isc/include/isc/fxhash.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/isc/include/isc/fxhash.h b/lib/isc/include/isc/fxhash.h index ac19d0ac4e..55a4f31e3b 100644 --- a/lib/isc/include/isc/fxhash.h +++ b/lib/isc/include/isc/fxhash.h @@ -32,7 +32,11 @@ #include /* The constant K from Rust's fxhash */ -#define K 0x9e3779b97f4a7c15ull +#if SIZE_MAX == UINT64_MAX +#define K UINT64_C(0x517cc1b727220a95) +#else +#define K UINT32_C(0x9e3779b9) +#endif static inline size_t fx_add_to_hash(size_t hash, size_t i) {