Skip to content

Commit 66b2cf1

Browse files
committed
Use immintrin.h everywhere for intrinsics
1 parent 4c935e2 commit 66b2cf1

File tree

4 files changed

+0
-24
lines changed

4 files changed

+0
-24
lines changed

configure.ac

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,7 @@ CXXFLAGS="$CXXFLAGS $SSE41_CXXFLAGS"
348348
AC_MSG_CHECKING(for SSE4.1 intrinsics)
349349
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
350350
#include <stdint.h>
351-
#if defined(_MSC_VER)
352351
#include <immintrin.h>
353-
#elif defined(__GNUC__)
354-
#include <x86intrin.h>
355-
#endif
356352
]],[[
357353
__m128i l = _mm_set1_epi32(0);
358354
return _mm_extract_epi32(l, 3);
@@ -367,11 +363,7 @@ CXXFLAGS="$CXXFLAGS $AVX2_CXXFLAGS"
367363
AC_MSG_CHECKING(for AVX2 intrinsics)
368364
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
369365
#include <stdint.h>
370-
#if defined(_MSC_VER)
371366
#include <immintrin.h>
372-
#elif defined(__GNUC__) && defined(__AVX2__)
373-
#include <x86intrin.h>
374-
#endif
375367
]],[[
376368
__m256i l = _mm256_set1_epi32(0);
377369
return _mm256_extract_epi32(l, 7);
@@ -386,11 +378,7 @@ CXXFLAGS="$CXXFLAGS $SHANI_CXXFLAGS"
386378
AC_MSG_CHECKING(for SHA-NI intrinsics)
387379
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
388380
#include <stdint.h>
389-
#if defined(_MSC_VER)
390381
#include <immintrin.h>
391-
#elif defined(__GNUC__)
392-
#include <x86intrin.h>
393-
#endif
394382
]],[[
395383
__m128i i = _mm_set1_epi32(0);
396384
__m128i j = _mm_set1_epi32(1);

src/crypto/sha256_avx2.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
#ifdef ENABLE_AVX2
22

33
#include <stdint.h>
4-
#if defined(_MSC_VER)
54
#include <immintrin.h>
6-
#elif defined(__GNUC__)
7-
#include <x86intrin.h>
8-
#endif
95

106
#include <crypto/sha256.h>
117
#include <crypto/common.h>

src/crypto/sha256_shani.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
#ifdef ENABLE_SHANI
1010

1111
#include <stdint.h>
12-
#if defined(_MSC_VER)
1312
#include <immintrin.h>
14-
#elif defined(__GNUC__)
15-
#include <x86intrin.h>
16-
#endif
1713

1814
#include <crypto/common.h>
1915

src/crypto/sha256_sse41.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
#ifdef ENABLE_SSE41
22

33
#include <stdint.h>
4-
#if defined(_MSC_VER)
54
#include <immintrin.h>
6-
#elif defined(__GNUC__)
7-
#include <x86intrin.h>
8-
#endif
95

106
#include <crypto/sha256.h>
117
#include <crypto/common.h>

0 commit comments

Comments
 (0)