From 1414a76fa9a5149d20e1a92d1f93c43d8f1485fd Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Mon, 3 Oct 2022 22:06:58 +0000 Subject: [PATCH] Only vectorize atan for Altivec if VSX is available. --- Eigen/src/Core/arch/AltiVec/MathFunctions.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Eigen/src/Core/arch/AltiVec/MathFunctions.h b/Eigen/src/Core/arch/AltiVec/MathFunctions.h index 057796121..6f48d98fb 100644 --- a/Eigen/src/Core/arch/AltiVec/MathFunctions.h +++ b/Eigen/src/Core/arch/AltiVec/MathFunctions.h @@ -60,12 +60,6 @@ Packet4f patan(const Packet4f& _x) return patan_float(_x); } -template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS -Packet2d patan(const Packet2d& _x) -{ - return patan_double(_x); -} - #ifdef __VSX__ #ifndef EIGEN_COMP_CLANG template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS @@ -79,6 +73,12 @@ Packet2d prsqrt(const Packet2d& x) { return vec_rsqrt(x); } + +template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS +Packet2d patan(const Packet2d& _x) +{ + return patan_double(_x); +} #endif template<> EIGEN_DEFINE_FUNCTION_ALLOWING_MULTIPLE_DEFINITIONS