From d46e2c10a60759e2b5a4b8e711832780215d768a Mon Sep 17 00:00:00 2001 From: Alexandre Avenel Date: Sun, 1 Nov 2015 10:49:27 +0100 Subject: Add round, ceil and floor for SSE4.1/AVX (Bug #70) --- test/packetmath.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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 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(-1,1) * std::pow(Scalar(10), internal::random(-3,3)); -- cgit v1.2.3