From d228bcdf8f35d0625e6dd69ae2f949c38ac21257 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Tue, 10 Jun 2025 21:52:01 +0000 Subject: [PATCH] Fix neon compilation bug --- Eigen/src/Core/arch/NEON/PacketMath.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Eigen/src/Core/arch/NEON/PacketMath.h b/Eigen/src/Core/arch/NEON/PacketMath.h index 261e1c1b6..9364cffca 100644 --- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -5703,16 +5703,6 @@ EIGEN_STRONG_INLINE Packet4hf pmadd(const Packet4hf& a, const Packet4hf& b, cons return vfma_f16(c, a, b); } -template <> -EIGEN_STRONG_INLINE Packet8hf pmsub(const Packet8hf& a, const Packet8hf& b, const Packet8hf& c) { - return pnegate(pnmadd(a, b, c)); -} - -template <> -EIGEN_STRONG_INLINE Packet4hf pmsub(const Packet4hf& a, const Packet4hf& b, const Packet4hf& c) { - return pnegate(pnmadd(a, b, c)); -} - template <> EIGEN_STRONG_INLINE Packet8hf pnmadd(const Packet8hf& a, const Packet8hf& b, const Packet8hf& c) { return vfmsq_f16(c, a, b); @@ -5723,6 +5713,16 @@ EIGEN_STRONG_INLINE Packet4hf pnmadd(const Packet4hf& a, const Packet4hf& b, con return vfms_f16(c, a, b); } +template <> +EIGEN_STRONG_INLINE Packet8hf pmsub(const Packet8hf& a, const Packet8hf& b, const Packet8hf& c) { + return pnegate(pnmadd(a, b, c)); +} + +template <> +EIGEN_STRONG_INLINE Packet4hf pmsub(const Packet4hf& a, const Packet4hf& b, const Packet4hf& c) { + return pnegate(pnmadd(a, b, c)); +} + template <> EIGEN_STRONG_INLINE Packet8hf pnmsub(const Packet8hf& a, const Packet8hf& b, const Packet8hf& c) { return pnegate(pmadd(a, b, c));