mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 12:26:38 -05:00
Some hash support improvments
This commit is contained in:
parent
00dc3e6a48
commit
cc2bdad335
5 changed files with 184 additions and 25 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue