From 394f564055f3723ead6dd45fdb9013ea77f8f6ad Mon Sep 17 00:00:00 2001 From: Guoqiang QI <425418567@qq.com> Date: Tue, 17 Nov 2020 12:27:01 +0000 Subject: Unify Inverse_SSE.h and Inverse_NEON.h into a single generic implementation using PacketMath. --- Eigen/src/Core/arch/NEON/TypeCasting.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Eigen/src/Core/arch/NEON/TypeCasting.h') diff --git a/Eigen/src/Core/arch/NEON/TypeCasting.h b/Eigen/src/Core/arch/NEON/TypeCasting.h index 80be213d2..54f97336e 100644 --- a/Eigen/src/Core/arch/NEON/TypeCasting.h +++ b/Eigen/src/Core/arch/NEON/TypeCasting.h @@ -1401,6 +1401,14 @@ template <> EIGEN_STRONG_INLINE Packet2ul preinterpret(const Packet2d& a) { return vreinterpretq_u64_f64(a); } +template <> +EIGEN_STRONG_INLINE Packet2d preinterpret(const Packet4i& a) { + return vreinterpretq_f64_s32(a); +} +template <> +EIGEN_STRONG_INLINE Packet4i preinterpret(const Packet2d& a) { + return vreinterpretq_s32_f64(a); +} #endif // EIGEN_ARCH_ARM64 -- cgit v1.2.3