summaryrefslogtreecommitdiff
path: root/sm4_simd.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-28 14:08:54 -0500
committerJeffrey Walton <noloader@gmail.com>2018-12-28 14:08:54 -0500
commit662db8fc872d65a1c409ba32fb8c4cfa28e3960e (patch)
tree31c6cb636e4dfd7b61017cd8eeb4051991e126b9 /sm4_simd.cpp
parentd2cf296d2aab20b7dc6faf802ca7583a01224dd8 (diff)
downloadcryptopp-git-662db8fc872d65a1c409ba32fb8c4cfa28e3960e.tar.gz
Cleanup adv_simd.h include for arch flags
Diffstat (limited to 'sm4_simd.cpp')
-rw-r--r--sm4_simd.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/sm4_simd.cpp b/sm4_simd.cpp
index f0d39ae2..64a10b09 100644
--- a/sm4_simd.cpp
+++ b/sm4_simd.cpp
@@ -15,18 +15,13 @@
#include "sm4.h"
#include "misc.h"
-#include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE.
// Do so in both simon.cpp and simon-simd.cpp.
// #undef CRYPTOPP_AESNI_AVAILABLE
-#if (CRYPTOPP_SSE2_INTRIN_AVAILABLE)
-# include <xmmintrin.h>
-# include <emmintrin.h>
-#endif
-
#if (CRYPTOPP_AESNI_AVAILABLE)
+# include "adv_simd.h"
# include <tmmintrin.h>
# include <wmmintrin.h>
#endif