mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 01:46:32 -05:00
Adds gen3/z support for AVX2.
This commit is contained in:
parent
8e97b7a248
commit
0e3901ca3e
7 changed files with 270 additions and 0 deletions
12
raid/test.c
12
raid/test.c
|
|
@ -335,6 +335,12 @@ int raid_test_par(int mode, int nd, size_t size)
|
|||
f[nf++] = raid_gen6_ssse3ext;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
if (raid_cpu_has_avx2()) {
|
||||
f[nf++] = raid_gen3_avx2ext;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
} else {
|
||||
f[nf++] = raid_genz_int32;
|
||||
|
|
@ -347,6 +353,12 @@ int raid_test_par(int mode, int nd, size_t size)
|
|||
f[nf++] = raid_genz_sse2ext;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
if (raid_cpu_has_avx2()) {
|
||||
f[nf++] = raid_genz_avx2ext;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue