mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
implement pcplxflip for altivec
This commit is contained in:
parent
59eeb67187
commit
78e1a62c54
@ -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))));
|
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
|
} // end namespace internal
|
||||||
|
|
||||||
#endif // EIGEN_COMPLEX_ALTIVEC_H
|
#endif // EIGEN_COMPLEX_ALTIVEC_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user