[PATCH 1/4] Fix wrong CPU feature #ifdef for SHA1/AVX
Jussi Kivilinna
jussi.kivilinna at iki.fi
Thu Jun 30 23:55:23 CEST 2016
* cipher/sha1-avx-amd64.S: Check for HAVE_GCC_INLINE_ASM_AVX instead of
HAVE_GCC_INLINE_ASM_AVX2 & HAVE_GCC_INLINE_ASM_BMI2.
--
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
cipher/sha1-avx-amd64.S | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cipher/sha1-avx-amd64.S b/cipher/sha1-avx-amd64.S
index 062a45b..3b3a6d1 100644
--- a/cipher/sha1-avx-amd64.S
+++ b/cipher/sha1-avx-amd64.S
@@ -31,8 +31,7 @@
#if (defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) || \
defined(HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS)) && \
- defined(HAVE_GCC_INLINE_ASM_BMI2) && \
- defined(HAVE_GCC_INLINE_ASM_AVX2) && defined(USE_SHA1)
+ defined(HAVE_GCC_INLINE_ASM_AVX) && defined(USE_SHA1)
#ifdef __PIC__
# define RIP (%rip)
More information about the Gcrypt-devel
mailing list