Some hash support improvments

This commit is contained in:
Andrea Mazzoleni 2026-01-08 18:47:53 +01:00
parent 00dc3e6a48
commit cc2bdad335
5 changed files with 184 additions and 25 deletions

View file

@ -1346,17 +1346,7 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
} else if (state->opt.force_spooky2) {
state->besthash = HASH_SPOOKY2;
} else {
#ifdef CONFIG_X86
if (sizeof(void*) == 4 && !raid_cpu_has_slowmult())
state->besthash = HASH_MURMUR3;
else
state->besthash = HASH_SPOOKY2;
#else
if (sizeof(void*) == 4)
state->besthash = HASH_MURMUR3;
else
state->besthash = HASH_SPOOKY2;
#endif
state->besthash = membesthash();
}
/* by default use the best hash */