From 38ae5353ab6f1050aed64821ac56a1561096cdce Mon Sep 17 00:00:00 2001 From: Guoqiang QI <425418567@qq.com> Date: Wed, 13 Jan 2021 22:54:03 +0000 Subject: 1)provide a better generic paddsub op implementation 2)make paddsub op support the Packet2cf/Packet4f/Packet2f in NEON 3)make paddsub op support the Packet2cf/Packet4f in SSE --- Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h') diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index 9253d8cab..f40093455 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -19,6 +19,12 @@ namespace Eigen { namespace internal { +template EIGEN_DEVICE_FUNC inline Packet +pset(const typename unpacket_traits::type (&a)[N] /* a */) { + EIGEN_STATIC_ASSERT(unpacket_traits::size == N, THE_ARRAY_SIZE_SHOULD_EQUAL_WITH_PACKET_SIZE); + return pload(a); +} + template EIGEN_STRONG_INLINE Packet pfrexp_float(const Packet& a, Packet& exponent) { typedef typename unpacket_traits::integer_packet PacketI; -- cgit v1.2.3