Add portable 128-bit vector parity routines for gen1/gen2/genz to optimize non-x86 CPUs

This commit is contained in:
Andrea Mazzoleni 2026-06-04 17:53:25 +02:00
parent d03a583523
commit b78542685f
10 changed files with 336 additions and 6 deletions

View file

@ -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()) {