Use mulhash for integer keys while retaining inthash_u64 on 32-bit architectures
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-10-14 18:46:56 +02:00
parent 377a907c0c
commit 8f22da9018
2 changed files with 31 additions and 3 deletions

View file

@ -1773,7 +1773,7 @@ void bucket_free(void* void_bucket)
void bucket_insert(tommy_hashdyn* bucket_hash, time_t time_at, block_off_t count, int justsynced)
{
tommy_hash_t hash = tommy_inthash_u64(time_at);
tommy_hash_t hash = bucket_time_hash(time_at);
tommy_node* i = tommy_hashdyn_bucket(bucket_hash, hash);
while (i) {
struct snapraid_bucket* entry = i->data;