diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2016-06-30 21:17:32 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2016-06-30 21:17:32 +0300 |
commit | 4a983e3bef58b9d056517e25e0ab10b72d12ceba (patch) | |
tree | a121a50f512cf87413d575f0dfcaebc6d759b729 /cipher/sha1-avx-amd64.S | |
parent | 6965515c73632a088fb126a4a55e95121671fa98 (diff) | |
download | libgcrypt-4a983e3bef58b9d056517e25e0ab10b72d12ceba.tar.gz |
Fix wrong CPU feature #ifdef for SHA1/AVX
* 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@iki.fi>
Diffstat (limited to 'cipher/sha1-avx-amd64.S')
-rw-r--r-- | cipher/sha1-avx-amd64.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cipher/sha1-avx-amd64.S b/cipher/sha1-avx-amd64.S index 062a45b1..3b3a6d11 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) |