aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Sanchez <cantonios@google.com>2024-04-24 15:57:44 -0700
committerAntonio Sanchez <cantonios@google.com>2024-04-24 15:58:03 -0700
commit1c8c734c8b93434cc6731869bbcb369c1b37b676 (patch)
treecd504c2c1a44ff87b7e44b88ebbcdc855db2af21
parent34967b0b5ba974cddd06c3a957e6b42ba620ed22 (diff)
downloadeigen-1c8c734c8b93434cc6731869bbcb369c1b37b676.tar.gz
Fix sin/cos on PPC.
-rw-r--r--Eigen/src/Core/arch/AltiVec/PacketMath.h4
1 files changed, 4 insertions, 0 deletions
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<Packet2d>(vec_cmpeq(a, b));
}
template <>
+EIGEN_STRONG_INLINE Packet2l pcmp_eq(const Packet2l& a, const Packet2l& b) {
+ return reinterpret_cast<Packet2l>(vec_cmpeq(a, b));
+}
+template <>
EIGEN_STRONG_INLINE Packet2d pcmp_lt_or_nan(const Packet2d& a, const Packet2d& b) {
Packet2d c = reinterpret_cast<Packet2d>(vec_cmpge(a, b));
return vec_nor(c, c);