From 1c8c734c8b93434cc6731869bbcb369c1b37b676 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Wed, 24 Apr 2024 15:57:44 -0700 Subject: [PATCH] Fix sin/cos on PPC. --- Eigen/src/Core/arch/AltiVec/PacketMath.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h index eed545c48..b0f7262ff 100644 --- a/Eigen/src/Core/arch/AltiVec/PacketMath.h +++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h @@ -3398,6 +3398,10 @@ EIGEN_STRONG_INLINE Packet2d pcmp_eq(const Packet2d& a, const Packet2d& b) { return reinterpret_cast(vec_cmpeq(a, b)); } template <> +EIGEN_STRONG_INLINE Packet2l pcmp_eq(const Packet2l& a, const Packet2l& b) { + return reinterpret_cast(vec_cmpeq(a, b)); +} +template <> EIGEN_STRONG_INLINE Packet2d pcmp_lt_or_nan(const Packet2d& a, const Packet2d& b) { Packet2d c = reinterpret_cast(vec_cmpge(a, b)); return vec_nor(c, c);