From 85c137ccd4394123c06c36dcf414bd591a02c441 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 18 May 2011 08:15:47 +0200 Subject: NEON: fix ploaddup --- Eigen/src/Core/arch/NEON/PacketMath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Eigen/src') diff --git a/Eigen/src/Core/arch/NEON/PacketMath.h b/Eigen/src/Core/arch/NEON/PacketMath.h index 4f66b0f43..0a621688f 100644 --- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -191,14 +191,14 @@ template<> EIGEN_STRONG_INLINE Packet4f ploaddup(const float* from) { float32x2_t lo, hi; lo = vdup_n_f32(*from); - hi = vdup_n_f32(*from); + hi = vdup_n_f32(*(from+1)); return vcombine_f32(lo, hi); } template<> EIGEN_STRONG_INLINE Packet4i ploaddup(const int* from) { int32x2_t lo, hi; lo = vdup_n_s32(*from); - hi = vdup_n_s32(*from); + hi = vdup_n_s32(*(from+1)); return vcombine_s32(lo, hi); } -- cgit v1.2.3