From fbe7916c552c7ae3159a2e571654092c58ae1d87 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 29 Apr 2020 00:58:41 +0000 Subject: [PATCH] Fix compilation error with Clang on Android: _mm_extract_epi64 fails to compile. --- Eigen/src/Core/arch/SSE/PacketMath.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Eigen/src/Core/arch/SSE/PacketMath.h b/Eigen/src/Core/arch/SSE/PacketMath.h index 16215ec72..f4a409430 100755 --- a/Eigen/src/Core/arch/SSE/PacketMath.h +++ b/Eigen/src/Core/arch/SSE/PacketMath.h @@ -776,17 +776,10 @@ template<> EIGEN_STRONG_INLINE int predux(const Packet4i& a) } #endif -#ifdef EIGEN_VECTORIZE_SSE4_1 -template<> EIGEN_STRONG_INLINE bool predux(const Packet16b& a) { - Packet16b tmp = _mm_or_si128(a, _mm_unpackhi_epi64(a,a)); - return _mm_extract_epi64(tmp, 0) != 0; -} -#else template<> EIGEN_STRONG_INLINE bool predux(const Packet16b& a) { Packet4i tmp = _mm_or_si128(a, _mm_unpackhi_epi64(a,a)); return (pfirst(tmp) != 0) || (pfirst(_mm_shuffle_epi32(tmp, 1)) != 0); } -#endif // Other reduction functions: