NEON: fix plset

This commit is contained in:
Gael Guennebaud 2011-05-18 21:12:08 +02:00
parent 8170ef0b2d
commit f2837aebc4

View File

@ -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);
}