diff options
author | Konstantinos Margaritis <markos@freevec.org> | 2016-04-05 22:22:08 +0300 |
---|---|---|
committer | Konstantinos Margaritis <markos@freevec.org> | 2016-04-05 22:22:08 +0300 |
commit | 2bba4ee2cf0b1fb3f80e7cff09c1d1bf6588ad48 (patch) | |
tree | 6c323fb36461843286cb03485a4cfb974fe704b9 /test | |
parent | 4d7e230d2f8a55c45c1191fe08aa19d41e869a65 (diff) | |
parent | 317384b397faee28ad9296778aab478be1fb6b85 (diff) |
Merged kmargar/eigen/tip into default
Diffstat (limited to 'test')
-rw-r--r-- | test/packetmath.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp index 9e89f85c1..37da6c86f 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -177,7 +177,7 @@ template<typename Scalar> void packetmath() internal::pstore(data2, internal::pset1<Packet>(data1[offset])); VERIFY(areApprox(ref, data2, PacketSize) && "internal::pset1"); } - + { for (int i=0; i<PacketSize*4; ++i) ref[i] = data1[i/PacketSize]; @@ -199,9 +199,9 @@ template<typename Scalar> void packetmath() internal::pstore(data2+1*PacketSize, A1); VERIFY(areApprox(ref, data2, 2*PacketSize) && "internal::pbroadcast2"); } - + VERIFY(internal::isApprox(data1[0], internal::pfirst(internal::pload<Packet>(data1))) && "internal::pfirst"); - + if(PacketSize>1) { for(int offset=0;offset<4;++offset) @@ -212,6 +212,7 @@ template<typename Scalar> void packetmath() VERIFY(areApprox(ref, data2, PacketSize) && "ploaddup"); } } + if(PacketSize>2) { for(int offset=0;offset<4;++offset) @@ -227,7 +228,7 @@ template<typename Scalar> void packetmath() for (int i=0; i<PacketSize; ++i) ref[0] += data1[i]; VERIFY(isApproxAbs(ref[0], internal::predux(internal::pload<Packet>(data1)), refvalue) && "internal::predux"); - + { for (int i=0; i<4; ++i) ref[i] = 0; @@ -431,6 +432,7 @@ template<typename Scalar> void packetmath_real() VERIFY((numext::isnan)(data2[0])); VERIFY((numext::isnan)(data2[1])); #endif + } } |