summaryrefslogtreecommitdiff
path: root/cipher/sha256-avx2-bmi2-amd64.S
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/sha256-avx2-bmi2-amd64.S')
-rw-r--r--cipher/sha256-avx2-bmi2-amd64.S11
1 files changed, 9 insertions, 2 deletions
diff --git a/cipher/sha256-avx2-bmi2-amd64.S b/cipher/sha256-avx2-bmi2-amd64.S
index 09df711f..74b60631 100644
--- a/cipher/sha256-avx2-bmi2-amd64.S
+++ b/cipher/sha256-avx2-bmi2-amd64.S
@@ -54,7 +54,8 @@
#ifdef __x86_64
#include <config.h>
-#if defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) && \
+#if (defined(HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS) || \
+ defined(HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS)) && \
defined(HAVE_INTEL_SYNTAX_PLATFORM_AS) && \
defined(HAVE_GCC_INLINE_ASM_AVX2) && defined(HAVE_GCC_INLINE_ASM_BMI2) && \
defined(USE_SHA256)
@@ -65,6 +66,12 @@
# define ADD_RIP
#endif
+#ifdef HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS
+# define ELF(...) __VA_ARGS__
+#else
+# define ELF(...) /*_*/
+#endif
+
.intel_syntax noprefix
#define VMOVDQ vmovdqu /* ; assume buffers not aligned */
@@ -555,7 +562,7 @@ rotate_Xs
*/
.text
.globl _gcry_sha256_transform_amd64_avx2
-.type _gcry_sha256_transform_amd64_avx2,@function
+ELF(.type _gcry_sha256_transform_amd64_avx2,@function)
.align 32
_gcry_sha256_transform_amd64_avx2:
push rbx