From 80f1651f3579cd45c6874c64a0439fa32928aa64 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Tue, 27 Nov 2018 17:25:49 -0800 Subject: [PATCH] Use explicit packet type in SSE/PacketMath pldexp --- Eigen/src/Core/arch/SSE/PacketMath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/arch/SSE/PacketMath.h b/Eigen/src/Core/arch/SSE/PacketMath.h index 800eb4d86..1a2710a3d 100755 --- a/Eigen/src/Core/arch/SSE/PacketMath.h +++ b/Eigen/src/Core/arch/SSE/PacketMath.h @@ -579,7 +579,7 @@ template<> EIGEN_STRONG_INLINE Packet4f pldexp(const Packet4f& a, cons } template<> EIGEN_STRONG_INLINE Packet2d pldexp(const Packet2d& a, const Packet2d& exponent) { - const __m128i cst_1023_0 = _mm_setr_epi32(1023, 1023, 0, 0); + const Packet4i cst_1023_0 = _mm_setr_epi32(1023, 1023, 0, 0); Packet4i emm0 = _mm_cvttpd_epi32(exponent); emm0 = padd(emm0, cst_1023_0); emm0 = _mm_slli_epi32(emm0, 20);