From 0e8128875dd78a210296fc1cc0e6df6c29791659 Mon Sep 17 00:00:00 2001 From: Nils Schulte Date: Tue, 14 Feb 2023 15:48:07 +0000 Subject: [PATCH] Fix gcc11.3 arm build. --- Eigen/src/Core/arch/NEON/PacketMath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/arch/NEON/PacketMath.h b/Eigen/src/Core/arch/NEON/PacketMath.h index b13bedbd3..5a6c35c9b 100644 --- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -90,8 +90,8 @@ typedef uint32x4_t Packet4ui; typedef int64x2_t Packet2l; typedef uint64x2_t Packet2ul; -EIGEN_ALWAYS_INLINE Packet4f make_packet4f(float a, float b, float c, float d) { return {a, b, c, d}; } -EIGEN_ALWAYS_INLINE Packet2f make_packet2f(float a, float b) { return {a, b}; } +EIGEN_ALWAYS_INLINE Packet4f make_packet4f(float a, float b, float c, float d) { return float32x4_t{a, b, c, d}; } +EIGEN_ALWAYS_INLINE Packet2f make_packet2f(float a, float b) { return float32x2_t{a, b}; } #endif // EIGEN_COMP_MSVC_STRICT -- GitLab