VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/config.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-17 08:01:50 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-17 08:36:31 +0200
commita72c7bcd6a1f2f9043e169bf4262dfe3ca006c38 (patch)
tree0dc742117b050f9b0710744342b1cd07df3b596e /src/Crypto/config.h
parent2780ac962ec75f548acb616dd810515e528ac0b1 (diff)
downloadVeraCrypt-a72c7bcd6a1f2f9043e169bf4262dfe3ca006c38.tar.gz
VeraCrypt-a72c7bcd6a1f2f9043e169bf4262dfe3ca006c38.zip
Linux: fix compilation error on Streebog.c if SSE4.1 not enabled in compiler
Diffstat (limited to 'src/Crypto/config.h')
-rw-r--r--src/Crypto/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Crypto/config.h b/src/Crypto/config.h
index d3638121..792ac678 100644
--- a/src/Crypto/config.h
+++ b/src/Crypto/config.h
@@ -123,6 +123,12 @@
#define CRYPTOPP_BOOL_ALIGN16 0
#endif
+#if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE && (defined(__SSE4_1__) || defined(__INTEL_COMPILER) || defined(_MSC_VER))
+ #define CRYPTOPP_BOOL_SSE41_INTRINSICS_AVAILABLE 1
+#else
+ #define CRYPTOPP_BOOL_SSE41_INTRINSICS_AVAILABLE 0
+#endif
+
// how to allocate 16-byte aligned memory (for SSE2)
#if defined(_MSC_VER)
#define CRYPTOPP_MM_MALLOC_AVAILABLE