Adds gen3/z support for AVX2.

This commit is contained in:
Andrea Mazzoleni 2014-09-15 22:31:25 +02:00
parent 8e97b7a248
commit 0e3901ca3e
7 changed files with 270 additions and 0 deletions

View file

@ -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
}