Test <arm_acle.h> include under Apple

This is a compile test
pull/461/head
Jeffrey Walton 2017-08-11 12:31:04 -04:00
parent 22b7d74e1f
commit 8a66353b2c
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
5 changed files with 12 additions and 4 deletions

View File

@ -572,9 +572,11 @@ NAMESPACE_END
# if defined(__ARM_FEATURE_CRYPTO) || (CRYPTOPP_MSC_VERSION >= 1910) || \
defined(__aarch32__) || defined(__aarch64__)
# define CRYPTOPP_ARM_AES_AVAILABLE 1
# define CRYPTOPP_ARM_PMULL_AVAILABLE 1
# define CRYPTOPP_ARM_SHA_AVAILABLE 1
# define CRYPTOPP_ARM_CRYPTO_AVAILABLE 1
# if !defined(__apple_build_version__)
# define CRYPTOPP_ARM_PMULL_AVAILABLE 1
# endif
# endif
#endif

View File

@ -29,7 +29,7 @@
# include "nmmintrin.h"
#endif
#if (CRYPTOPP_ARM_CRC32_AVAILABLE)
#if (CRYPTOPP_ARM_CRC32_AVAILABLE) && !defined(CRYPTOPP_APPLE_CLANG_VERSION)
# include "arm_acle.h"
#endif

View File

@ -34,7 +34,7 @@
# include "arm_neon.h"
#endif
#if (CRYPTOPP_ARM_PMULL_AVAILABLE)
#if (CRYPTOPP_ARM_PMULL_AVAILABLE) && !defined(CRYPTOPP_APPLE_CLANG_VERSION)
# include "arm_acle.h"
#endif

View File

@ -44,6 +44,9 @@
#if (CRYPTOPP_ARM_AES_AVAILABLE)
# include "arm_neon.h"
#endif
#if (CRYPTOPP_ARM_AES_AVAILABLE) && !defined(CRYPTOPP_APPLE_CLANG_VERSION)
# include "arm_acle.h"
#endif

View File

@ -39,8 +39,11 @@
# include "immintrin.h"
#endif
#if (CRYPTOPP_ARM_SHA_AVAILABLE)
#if (CRYPTOPP_ARM_AES_AVAILABLE)
# include "arm_neon.h"
#endif
#if (CRYPTOPP_ARM_AES_AVAILABLE) && !defined(CRYPTOPP_APPLE_CLANG_VERSION)
# include "arm_acle.h"
#endif