diff options
author | Alexandre Avenel <anonymous@invalid.net> | 2015-11-01 10:49:27 +0100 |
---|---|---|
committer | Alexandre Avenel <anonymous@invalid.net> | 2015-11-01 10:49:27 +0100 |
commit | d46e2c10a60759e2b5a4b8e711832780215d768a (patch) | |
tree | eb7030bd6dfbfa55afac857acb8c4ed499bc237a /test | |
parent | b32948c6427635aa91cd585a2eceecef8440fbd1 (diff) |
Add round, ceil and floor for SSE4.1/AVX (Bug #70)
Diffstat (limited to 'test')
-rw-r--r-- | test/packetmath.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp index 568058f1a..dea648002 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -296,6 +296,10 @@ template<typename Scalar> void packetmath_real() EIGEN_ALIGN_MAX Scalar data2[PacketTraits::size*4]; EIGEN_ALIGN_MAX Scalar ref[PacketTraits::size*4]; + CHECK_CWISE1_IF(PacketTraits::HasRound, std::round, internal::pround); + CHECK_CWISE1_IF(PacketTraits::HasCeil, std::ceil, internal::pceil); + CHECK_CWISE1_IF(PacketTraits::HasFloor, std::floor, internal::pfloor); + for (int i=0; i<size; ++i) { data1[i] = internal::random<Scalar>(-1,1) * std::pow(Scalar(10), internal::random<Scalar>(-3,3)); |