From 4eb92e564710cd55323302d31e47aff74d770426 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 23 Apr 2014 18:23:07 -0700 Subject: [PATCH] Fixed the NEON implementation of predux_max. --- 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 6a6876e69..6426623cf 100644 --- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -422,6 +422,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); }