Add vectorization of Reverse (was more tricky than I thought) and

simplify the index based functions
This commit is contained in:
Gael Guennebaud
2009-02-06 12:40:38 +00:00
parent 4dc4ab3abb
commit f5d96df800
5 changed files with 65 additions and 95 deletions

View File

@@ -134,6 +134,11 @@ template<typename Scalar> void packetmath()
}
ei_pstore(data2, ei_preduxp(packets));
VERIFY(areApprox(ref, data2, PacketSize) && "ei_preduxp");
for (int i=0; i<PacketSize; ++i)
ref[i] = data1[PacketSize-i-1];
ei_pstore(data2, ei_preverse(ei_pload(data1)));
VERIFY(areApprox(ref, data2, PacketSize) && "ei_preverse");
}
void test_packetmath()