Don't include immintrin.h if not necessary.
authorCryptoManiac <balthazar.ad@gmail.com>
Mon, 12 Oct 2015 15:57:04 +0000 (08:57 -0700)
committerCryptoManiac <balthazar.ad@gmail.com>
Mon, 12 Oct 2015 15:57:04 +0000 (08:57 -0700)
src/crypto/sha2/asm/copy_swap.c

index f430292..5f7bbf3 100644 (file)
@@ -3,7 +3,6 @@
 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 
 #include <stdint.h>
-#include <immintrin.h>
 
 void copy_swap_hashes(uint32_t *blocks, uint32_t *state)
 {
@@ -42,6 +41,8 @@ void copy_swap_hashes(uint32_t *blocks, uint32_t *state)
 }
 
 #ifdef USE_SSSE3
+#include <immintrin.h>
+
 void copy_swap_hashes_ssse3(uint32_t *blocks, uint32_t *state) 
 {
     __m128i mask = _mm_set_epi8(12, 13, 14, 15, 8, 9, 10, 11, 4, 5, 6, 7, 0, 1, 2, 3);