diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-05-18 21:12:08 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-05-18 21:12:08 +0200 |
commit | f2837aebc4179c71145545c5e5988734c7ed30b2 (patch) | |
tree | 6130160c2bf97ccad1401e2f10f8bd867d4e4abf /Eigen/src/Core/arch/NEON/PacketMath.h | |
parent | 8170ef0b2d3cc146fb2340226fe840e7caa287d0 (diff) |
NEON: fix plset
Diffstat (limited to 'Eigen/src/Core/arch/NEON/PacketMath.h')
-rw-r--r-- | Eigen/src/Core/arch/NEON/PacketMath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/NEON/PacketMath.h b/Eigen/src/Core/arch/NEON/PacketMath.h index 0a621688f..478ef8038 100644 --- a/Eigen/src/Core/arch/NEON/PacketMath.h +++ b/Eigen/src/Core/arch/NEON/PacketMath.h @@ -100,12 +100,12 @@ template<> EIGEN_STRONG_INLINE Packet4i pset1<Packet4i>(const int& from) { template<> EIGEN_STRONG_INLINE Packet4f plset<float>(const float& a) { - Packet4f countdown = { 3, 2, 1, 0 }; + Packet4f countdown = { 0, 1, 2, 3 }; return vaddq_f32(pset1<Packet4f>(a), countdown); } template<> EIGEN_STRONG_INLINE Packet4i plset<int>(const int& a) { - Packet4i countdown = { 3, 2, 1, 0 }; + Packet4i countdown = { 0, 1, 2, 3 }; return vaddq_s32(pset1<Packet4i>(a), countdown); } |