diff options
author | Guoqiang QI <425418567@qq.com> | 2020-11-17 12:27:01 +0000 |
---|---|---|
committer | David Tellenbach <david.tellenbach@me.com> | 2020-11-17 12:27:01 +0000 |
commit | 394f564055f3723ead6dd45fdb9013ea77f8f6ad (patch) | |
tree | 847bbc564d7b265945228f31e66c31bacecea2c6 /Eigen/src/Core/arch/SSE/TypeCasting.h | |
parent | 8e9cc5b10a16dde87c65e9e9c4471095f78e11d4 (diff) |
Unify Inverse_SSE.h and Inverse_NEON.h into a single generic implementation using PacketMath.
Diffstat (limited to 'Eigen/src/Core/arch/SSE/TypeCasting.h')
-rw-r--r-- | Eigen/src/Core/arch/SSE/TypeCasting.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/SSE/TypeCasting.h b/Eigen/src/Core/arch/SSE/TypeCasting.h index 3e6cd90e5..d2a0037e0 100644 --- a/Eigen/src/Core/arch/SSE/TypeCasting.h +++ b/Eigen/src/Core/arch/SSE/TypeCasting.h @@ -77,6 +77,14 @@ template<> EIGEN_STRONG_INLINE Packet4f preinterpret<Packet4f,Packet4i>(const Pa return _mm_castsi128_ps(a); } +template<> EIGEN_STRONG_INLINE Packet2d preinterpret<Packet2d,Packet4i>(const Packet4i& a) { + return _mm_castsi128_pd(a); +} + +template<> EIGEN_STRONG_INLINE Packet4i preinterpret<Packet4i,Packet2d>(const Packet2d& a) { + return _mm_castpd_si128(a); +} + // Disable the following code since it's broken on too many platforms / compilers. //#elif defined(EIGEN_VECTORIZE_SSE) && (!EIGEN_ARCH_x86_64) && (!EIGEN_COMP_MSVC) #if 0 |