Skip to content

Commit 9398637

Browse files
committed
Fixed for portability.
1 parent 16fac9e commit 9398637

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

third_party/eigen3/unsupported/Eigen/CXX11/src/FixedPoint/PacketMathAVX2.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
#ifndef THIRD_PARTY_EIGEN3_UNSUPPORTED_EIGEN_CXX11_SRC_FIXEDPOINT_PACKETMATHAVX2_H_
22
#define THIRD_PARTY_EIGEN3_UNSUPPORTED_EIGEN_CXX11_SRC_FIXEDPOINT_PACKETMATHAVX2_H_
33

4+
#ifdef _MSC_VER
5+
46
#include <immintrin.h>
57
#include <emmintrin.h>
68
#include <smmintrin.h>
79

10+
#endif
11+
812
inline int _mm256_extract_epi16_N0(const __m256i X)
913
{
1014
return _mm_extract_epi16(_mm256_extractf128_si256(X, 0 >> 3), 0 % 8);
@@ -25,6 +29,7 @@ inline int _mm256_extract_epi8_N1(const __m256i X)
2529
return _mm_extract_epi8(_mm256_extractf128_si256((X), 1 >> 4), 1 % 16);
2630
}
2731

32+
2833
namespace Eigen {
2934
namespace internal {
3035

0 commit comments

Comments
 (0)