ref: f7306d54ed8ad475ecbaefd25d91a6bc59cbe73a
parent: 2681a2bff2998e6f033af861adaf38afd93b0094
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Tue May 27 13:19:45 EDT 2025
int64to32: compile only in 32-bit mode
--- a/src/hashing.c
+++ b/src/hashing.c
@@ -41,6 +41,7 @@
return a;
}
+#if !defined(BITS64)
u32int
int64to32hash(u64int key)
{
@@ -52,6 +53,7 @@
key = key ^ (key >> 22);
return (u32int)key;
}
+#endif
u64int
memhash64(const char *buf, usize n)
--- a/src/hashing.h
+++ b/src/hashing.h
@@ -4,10 +4,10 @@
#define memhash memhash64
#else
#define memhash memhash32
+u32int int64to32hash(u64int key) sl_constfn;
#endif
sl_v nextipow2(sl_v a) sl_constfn;
sl_v inthash(sl_v a) sl_constfn;
-u32int int64to32hash(u64int key) sl_constfn;
u64int memhash64(const char *buf, usize sz) sl_nonnull(1);
u32int memhash32(const char *buf, usize sz) sl_nonnull(1);
--
⑨