From 722ca0b665666f3af579002ad752541d7319d1b6 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Thu, 6 May 2021 18:36:47 +0200 Subject: Revert addition of unused `paddsub`. This fixes #2242 --- Eigen/src/Core/arch/NEON/Complex.h | 7 ------- Eigen/src/Core/arch/SSE/Complex.h | 6 ------ 2 files changed, 13 deletions(-) (limited to 'Eigen') diff --git a/Eigen/src/Core/arch/NEON/Complex.h b/Eigen/src/Core/arch/NEON/Complex.h index 1aa361bc0..a889ab1d2 100644 --- a/Eigen/src/Core/arch/NEON/Complex.h +++ b/Eigen/src/Core/arch/NEON/Complex.h @@ -124,13 +124,6 @@ template<> EIGEN_STRONG_INLINE Packet1cf psub(const Packet1cf& a, con template<> EIGEN_STRONG_INLINE Packet2cf psub(const Packet2cf& a, const Packet2cf& b) { return Packet2cf(psub(a.v, b.v)); } -template<> EIGEN_STRONG_INLINE Packet2cf pxor(const Packet2cf& a, const Packet2cf& b); -template<> EIGEN_STRONG_INLINE Packet2cf paddsub(const Packet2cf& a, const Packet2cf& b) -{ - Packet4f mask = {-0.0f, -0.0f, 0.0f, 0.0f}; - return Packet2cf(padd(a.v, pxor(mask, b.v))); -} - template<> EIGEN_STRONG_INLINE Packet1cf pnegate(const Packet1cf& a) { return Packet1cf(pnegate(a.v)); } template<> EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf& a) { return Packet2cf(pnegate(a.v)); } diff --git a/Eigen/src/Core/arch/SSE/Complex.h b/Eigen/src/Core/arch/SSE/Complex.h index b1edfa4b2..13b53242e 100644 --- a/Eigen/src/Core/arch/SSE/Complex.h +++ b/Eigen/src/Core/arch/SSE/Complex.h @@ -66,12 +66,6 @@ template<> struct unpacket_traits { template<> EIGEN_STRONG_INLINE Packet2cf padd(const Packet2cf& a, const Packet2cf& b) { return Packet2cf(_mm_add_ps(a.v,b.v)); } template<> EIGEN_STRONG_INLINE Packet2cf psub(const Packet2cf& a, const Packet2cf& b) { return Packet2cf(_mm_sub_ps(a.v,b.v)); } -template<> EIGEN_STRONG_INLINE Packet2cf pxor(const Packet2cf& a, const Packet2cf& b); -template<> EIGEN_STRONG_INLINE Packet2cf paddsub(const Packet2cf& a, const Packet2cf& b) -{ - const Packet4f mask = _mm_castsi128_ps(_mm_setr_epi32(0x80000000,0x80000000,0x0,0x0)); - return Packet2cf(padd(a.v, pxor(mask, b.v))); -} template<> EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf& a) { -- cgit v1.2.3