From d8aa4d6ba56f699a8ca6a7e1c6b89e189d81c3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Tue, 26 Mar 2024 15:48:44 +0000 Subject: [PATCH] Fix another instance of Packet2l on win32. --- Eigen/src/Core/arch/SSE/PacketMath.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Eigen/src/Core/arch/SSE/PacketMath.h b/Eigen/src/Core/arch/SSE/PacketMath.h index 64ffdf3e2..97c8ac874 100644 --- a/Eigen/src/Core/arch/SSE/PacketMath.h +++ b/Eigen/src/Core/arch/SSE/PacketMath.h @@ -1641,7 +1641,11 @@ EIGEN_STRONG_INLINE double pfirst(const Packet2d& a) { } template <> EIGEN_STRONG_INLINE int64_t pfirst(const Packet2l& a) { +#if EIGEN_ARCH_x86_64 int64_t x = _mm_cvtsi128_si64(a); +#else + int64_t x = numext::bit_cast(_mm_cvtsd_f64(_mm_castsi128_pd(a))); +#endif return x; } template <>