Refactors even more and add an additional selftest.

This commit is contained in:
Andrea Mazzoleni 2013-12-31 15:46:24 +01:00
parent 8a904cbe7a
commit cbddaa108d
13 changed files with 443 additions and 258 deletions

View file

@ -282,7 +282,7 @@ static void state_config_check(struct snapraid_state* state, const char* path, t
}
/* check for speed */
#if defined(__i386__) || defined(__x86_64__)
#ifdef CONFIG_X86
if (!raid_cpu_has_ssse3())
#endif
if (state->raid_mode == RAID_MODE_CAUCHY) {
@ -703,7 +703,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 {
#if defined(__i386__) || defined(__x86_64__)
#ifdef CONFIG_X86
if (sizeof(void*) == 4 && !raid_cpu_has_slowmult())
state->besthash = HASH_MURMUR3;
else