diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-09-20 00:35:27 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-09-20 00:35:27 -0400 |
commit | 49d7187255a3a44819d76a173d51a598a16cbedf (patch) | |
tree | b88ae57fa72bb4ce7d5d8379d4f08ca7972b2547 /config.compat | |
parent | 51423972b1b5eea640ff2b8d9230b73650ec3bf1 (diff) | |
download | cryptopp-git-49d7187255a3a44819d76a173d51a598a16cbedf.tar.gz |
Cleanup feature defines in <config.h>. Cleanup intrinsic includes in <cpu.h>
Diffstat (limited to 'config.compat')
-rw-r--r-- | config.compat | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config.compat b/config.compat index 4e7271a4..040701a5 100644 --- a/config.compat +++ b/config.compat @@ -510,6 +510,13 @@ NAMESPACE_END #define CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE 0
#endif
+// AVX2 in MSC 18.00
+#if !defined(CRYPTOPP_DISABLE_ASM) && !defined(CRYPTOPP_DISABLE_AVX) && (((_MSC_VER >= 1600) && !defined(_M_ARM)) || (defined(__RDRND__) || defined(__RDSEED__) || defined(__AVX__)))
+ #define CRYPTOPP_BOOL_AVX_AVAILABLE 1
+#else
+ #define CRYPTOPP_BOOL_AVX_AVAILABLE 0
+#endif
+
// Requires ARMv7 and ACLE 1.0. Testing shows ARMv7 is really ARMv7a under most toolchains.
#if !defined(CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM)
# if defined(__ARM_NEON__) || defined(__ARM_NEON) || defined(_M_ARM)
|