From 1e0c7d4f4933b12a325dbaa2c79ce946bb13f7d6 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Thu, 25 Feb 2021 14:29:49 -0800 Subject: Add print for SSE/NEON, use NEON rounding intrinsics if available. In SSE, by adding/subtracting 2^MantissaBits, we force rounding according to the current rounding mode. For NEON, we use the provided intrinsics for rint/floor/ceil if available (armv8). Related to #1969. --- test/packetmath.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/packetmath.cpp b/test/packetmath.cpp index ceafb9002..76ac47554 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -577,6 +577,9 @@ void packetmath_real() { values.push_back(Scalar(-1.5) + val); // Bug 1785. val = val / Scalar(2); } + values.push_back(NumTraits::infinity()); + values.push_back(-NumTraits::infinity()); + values.push_back(NumTraits::quiet_NaN()); for (size_t k=0; k