mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -05:00
Add portable 128-bit vector parity routines for gen1/gen2/genz to optimize non-x86 CPUs
This commit is contained in:
parent
d03a583523
commit
b78542685f
10 changed files with 336 additions and 6 deletions
|
|
@ -367,8 +367,14 @@ int raid_test_par(int mode, int nd, size_t size)
|
|||
/* setup all the available functions */
|
||||
test_setup(1) = raid_gen1_int32;
|
||||
test_setup(1) = raid_gen1_int64;
|
||||
#if CONFIG_VEC128
|
||||
test_setup(1) = raid_gen1_vec128;
|
||||
#endif
|
||||
test_setup(2) = raid_gen2_int32;
|
||||
test_setup(2) = raid_gen2_int64;
|
||||
#if CONFIG_VEC128
|
||||
test_setup(2) = raid_gen2_vec128;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_X86
|
||||
if (raid_cpu_has_sse2()) {
|
||||
|
|
@ -449,6 +455,9 @@ int raid_test_par(int mode, int nd, size_t size)
|
|||
} else {
|
||||
test_setup(3) = raid_genz_int32;
|
||||
test_setup(3) = raid_genz_int64;
|
||||
#if CONFIG_VEC128
|
||||
test_setup(3) = raid_genz_vec128;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_X86
|
||||
if (raid_cpu_has_sse2()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue