diff options
author | Yuanhan Liu <yuanhan.liu@linux.intel.com> | 2012-11-30 16:10:39 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-12-13 03:51:03 -0500 |
commit | 2c935842bdb46f5f557426feb4d2bdfdad1aa5f9 (patch) | |
tree | 3b089f583018fb5c1d58192dbf7ff92e914ddac2 /lib/raid6/algos.c | |
parent | 7056741fd9fc14a65608549a4657cf5178f05f63 (diff) |
lib/raid6: Add AVX2 optimized gen_syndrome functions
Add AVX2 optimized gen_syndrom functions, which is simply based on
sse2.c written by hpa.
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Jim Kukunas <james.t.kukunas@linux.intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'lib/raid6/algos.c')
-rw-r--r-- | lib/raid6/algos.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c index 8b7f55cadb45..6d7316fe9f30 100644 --- a/lib/raid6/algos.c +++ b/lib/raid6/algos.c | |||
@@ -45,11 +45,20 @@ const struct raid6_calls * const raid6_algos[] = { | |||
45 | &raid6_sse1x2, | 45 | &raid6_sse1x2, |
46 | &raid6_sse2x1, | 46 | &raid6_sse2x1, |
47 | &raid6_sse2x2, | 47 | &raid6_sse2x2, |
48 | #ifdef CONFIG_AS_AVX2 | ||
49 | &raid6_avx2x1, | ||
50 | &raid6_avx2x2, | ||
51 | #endif | ||
48 | #endif | 52 | #endif |
49 | #if defined(__x86_64__) && !defined(__arch_um__) | 53 | #if defined(__x86_64__) && !defined(__arch_um__) |
50 | &raid6_sse2x1, | 54 | &raid6_sse2x1, |
51 | &raid6_sse2x2, | 55 | &raid6_sse2x2, |
52 | &raid6_sse2x4, | 56 | &raid6_sse2x4, |
57 | #ifdef CONFIG_AS_AVX2 | ||
58 | &raid6_avx2x1, | ||
59 | &raid6_avx2x2, | ||
60 | &raid6_avx2x4, | ||
61 | #endif | ||
53 | #endif | 62 | #endif |
54 | #ifdef CONFIG_ALTIVEC | 63 | #ifdef CONFIG_ALTIVEC |
55 | &raid6_altivec1, | 64 | &raid6_altivec1, |