From e265f7ed8e59c26e15f2c35162c6b8da1c5d594f Mon Sep 17 00:00:00 2001 From: David Tellenbach Date: Wed, 28 Oct 2020 20:15:09 +0000 Subject: Add support for Armv8.2-a __fp16 Armv8.2-a provides a native half-precision floating point (__fp16 aka. float16_t). This patch introduces * __fp16 as underlying type of Eigen::half if this type is available * the packet types Packet4hf and Packet8hf representing float16x4_t and float16x8_t respectively * packet-math for the above packets with corresponding scalar type Eigen::half The packet-math functionality has been implemented by Ashutosh Sharma . This closes #1940. --- test/packetmath.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test/packetmath.cpp') diff --git a/test/packetmath.cpp b/test/packetmath.cpp index c6a1648ba..eabf69c62 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -246,6 +246,7 @@ void packetmath_boolean_mask_ops() { data1[i] = Scalar(i); data1[i + PacketSize] = internal::random() ? data1[i] : Scalar(0); } + CHECK_CWISE2_IF(true, internal::pcmp_eq, internal::pcmp_eq); //Test (-0) == (0) for signed operations -- cgit v1.2.3