From a4098ac676528a83cfb73d4d26ce1b42ec05f47c Mon Sep 17 00:00:00 2001 From: Shiva Ghose <10525807-shivaghose@users.noreply.gitlab.com> Date: Fri, 31 Dec 2021 08:43:24 +0000 Subject: [PATCH] Fix duplicate include guard *ALTIVEC_H -> *ZVECTOR_H Some some header guards were repeated between the `AltiVec` package and the `ZVector` packages. This could cause a problem if (for whatever reason) someone attempts to include headers for both architectures. --- Eigen/src/Core/arch/ZVector/Complex.h | 6 +++--- Eigen/src/Core/arch/ZVector/MathFunctions.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Eigen/src/Core/arch/ZVector/Complex.h b/Eigen/src/Core/arch/ZVector/Complex.h index acb04fb8c..df5c8d441 100644 --- a/Eigen/src/Core/arch/ZVector/Complex.h +++ b/Eigen/src/Core/arch/ZVector/Complex.h @@ -8,8 +8,8 @@ // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -#ifndef EIGEN_COMPLEX32_ALTIVEC_H -#define EIGEN_COMPLEX32_ALTIVEC_H +#ifndef EIGEN_COMPLEX32_ZVECTOR_H +#define EIGEN_COMPLEX32_ZVECTOR_H #include "../../InternalHeaderCheck.h" @@ -425,4 +425,4 @@ template<> EIGEN_STRONG_INLINE Packet2cf pblend(const Selector<2>& ifPacket, con } // end namespace Eigen -#endif // EIGEN_COMPLEX32_ALTIVEC_H +#endif // EIGEN_COMPLEX32_ZVECTOR_H diff --git a/Eigen/src/Core/arch/ZVector/MathFunctions.h b/Eigen/src/Core/arch/ZVector/MathFunctions.h index c86e18577..bad16a61f 100644 --- a/Eigen/src/Core/arch/ZVector/MathFunctions.h +++ b/Eigen/src/Core/arch/ZVector/MathFunctions.h @@ -13,8 +13,8 @@ * Julien Pommier's sse math library: http://gruntthepeon.free.fr/ssemath/ */ -#ifndef EIGEN_MATH_FUNCTIONS_ALTIVEC_H -#define EIGEN_MATH_FUNCTIONS_ALTIVEC_H +#ifndef EIGEN_MATH_FUNCTIONS_ZVECTOR_H +#define EIGEN_MATH_FUNCTIONS_ZVECTOR_H #include "../../InternalHeaderCheck.h" @@ -232,4 +232,4 @@ ptanh(const Packet4f& x) { } // end namespace Eigen -#endif // EIGEN_MATH_FUNCTIONS_ALTIVEC_H +#endif // EIGEN_MATH_FUNCTIONS_ZVECTOR_H