You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
622 B
22 lines
622 B
diff --git a/library/aesni.c b/library/aesni.c
|
|
index 2857068..3e104ab 100644
|
|
--- a/library/aesni.c
|
|
+++ b/library/aesni.c
|
|
@@ -31,16 +31,14 @@
|
|
#include <immintrin.h>
|
|
#endif
|
|
|
|
-#if defined(MBEDTLS_ARCH_IS_X86)
|
|
#if defined(MBEDTLS_COMPILER_IS_GCC)
|
|
#pragma GCC push_options
|
|
#pragma GCC target ("pclmul,sse2,aes")
|
|
#define MBEDTLS_POP_TARGET_PRAGMA
|
|
-#elif defined(__clang__) && (__clang_major__ >= 5)
|
|
+#elif defined(__clang__)
|
|
#pragma clang attribute push (__attribute__((target("pclmul,sse2,aes"))), apply_to=function)
|
|
#define MBEDTLS_POP_TARGET_PRAGMA
|
|
#endif
|
|
-#endif
|
|
|
|
#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY)
|
|
/*
|