aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/AltiVec/Complex.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-02-23 14:20:58 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-02-23 14:20:58 +0100
commit78e1a62c54ecd8a18312cf7909c16e82951ac1f6 (patch)
tree31ad74a6fa08e79f30f27c591e36d300ae8374fd /Eigen/src/Core/arch/AltiVec/Complex.h
parent59eeb671871bb21930fc7baa667bb948301dcc62 (diff)
implement pcplxflip for altivec
Diffstat (limited to 'Eigen/src/Core/arch/AltiVec/Complex.h')
-rw-r--r--Eigen/src/Core/arch/AltiVec/Complex.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/AltiVec/Complex.h b/Eigen/src/Core/arch/AltiVec/Complex.h
index 9ba34ee61..03e094c95 100644
--- a/Eigen/src/Core/arch/AltiVec/Complex.h
+++ b/Eigen/src/Core/arch/AltiVec/Complex.h
@@ -215,6 +215,11 @@ template<> EIGEN_STRONG_INLINE Packet2cf pdiv<Packet2cf>(const Packet2cf& a, con
return Packet2cf(pdiv(res.v, vec_add(s,vec_perm(s, s, p16uc_COMPLEX_REV))));
}
+EIGEN_STRONG_INLINE Packet2cf pcplxflip/*<Packet2cf>*/(const Packet2cf& x)
+{
+ return Packet2cf(vec_perm(x, x, p16uc_COMPLEX_REV));
+}
+
} // end namespace internal
#endif // EIGEN_COMPLEX_ALTIVEC_H