From 3ec6d38f35a73f771c9651c129b91b04398aef6a Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 1 Sep 2015 16:30:18 +0200 Subject: [PATCH] bug #1059: fix predux_max for NEON (this was already fixed in the default branch) --- Eigen/src/Core/arch/NEON/PacketMath.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Eigen/src/Core/arch/NEON/PacketMath.h b/Eigen/src/Core/arch/NEON/PacketMath.h index 94dfab330..d49670e04 100644 --- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -384,6 +384,7 @@ template<> EIGEN_STRONG_INLINE int predux_max(const Packet4i& a) a_lo = vget_low_s32(a); a_hi = vget_high_s32(a); max = vpmax_s32(a_lo, a_hi); + max = vpmax_s32(max, max); return vget_lane_s32(max, 0); }