From 1c9a2f192dad4847fb0205fa33d4caa17f7e53a8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 21 May 2023 20:29:35 +0200 Subject: Generalized hash function I also tried murmur64 but I don't see any reason for actually switching --- src/optimize.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/optimize.c') diff --git a/src/optimize.c b/src/optimize.c index a79299e..7929407 100644 --- a/src/optimize.c +++ b/src/optimize.c @@ -8,19 +8,20 @@ #include #include +#include #include #include #include struct tree_tracker { - uint32_t hash; + hash_t hash; struct tree *tree; int count; // reference/occurrence count size_t position; // in queue }; struct hash_to_tree { - uint32_t hash; + hash_t hash; struct tree *tree; }; -- cgit v1.2.3