From 55967f87d1dc5cf2c33145ddcff73f349e406635 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Fri, 11 Dec 2020 21:50:52 -0800 Subject: [PATCH] Fix NEON pmax. Simple typo, the max impl called pmin instead of pmax for floats. --- Eigen/src/Core/arch/NEON/PacketMath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/arch/NEON/PacketMath.h b/Eigen/src/Core/arch/NEON/PacketMath.h index baafe04b8..90ffee767 100644 --- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -3458,7 +3458,7 @@ template <> EIGEN_STRONG_INLINE Packet4bf pmin(const Packet4bf &a, template <> EIGEN_STRONG_INLINE Packet4bf pmax(const Packet4bf &a, const Packet4bf &b) { - return F32ToBf16(pmin(Bf16ToF32(a), Bf16ToF32(b))); + return F32ToBf16(pmax(Bf16ToF32(a), Bf16ToF32(b))); } template <> EIGEN_STRONG_INLINE Packet4bf pmax(const Packet4bf &a, const Packet4bf &b)