10 #ifndef EIGEN_COMPLEX_ALTIVEC_H 11 #define EIGEN_COMPLEX_ALTIVEC_H 60 if((ptrdiff_t(&from) % 16) == 0)
64 res.
v = vec_perm(res.
v, res.
v, p16uc_PSET_HI);
78 v1 = vec_perm(a.v, a.v, p16uc_COMPLEX_RE);
80 v2 = vec_perm(a.v, a.v, p16uc_COMPLEX_IM);
82 v1 = vec_madd(v1, b.v, p4f_ZERO);
84 v2 = vec_madd(v2, b.v, p4f_ZERO);
87 v2 = vec_perm(v2, v2, p16uc_COMPLEX_REV);
113 pstore((
float *)&res, a.v);
121 rev_a = vec_perm(a.
v, a.
v, p16uc_COMPLEX_REV2);
128 b = (
Packet4f) vec_sld(a.v, a.v, 8);
137 b1 = (
Packet4f) vec_sld(vecs[0].
v, vecs[1].v, 8);
138 b2 = (
Packet4f) vec_sld(vecs[1].v, vecs[0].v, 8);
149 b = (
Packet4f) vec_sld(a.v, a.v, 8);
162 first.
v = vec_sld(first.
v, second.
v, 8);
204 Packet4f s = vec_madd(b.v, b.v, p4f_ZERO);
205 return Packet2cf(
pdiv(res.
v, vec_add(s,vec_perm(s, s, p16uc_COMPLEX_REV))));
210 return Packet2cf(vec_perm(x.v, x.v, p16uc_COMPLEX_REV));
217 #endif // EIGEN_COMPLEX_ALTIVEC_H EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf &a, const Packet2cf &b) const
__vector unsigned char Packet16uc
#define EIGEN_STRONG_INLINE
EIGEN_STRONG_INLINE Packet2cf por< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2cf preduxp< Packet2cf >(const Packet2cf *vecs)
static Packet16uc p16uc_PSET_LO
#define EIGEN_DEBUG_UNALIGNED_LOAD
EIGEN_STRONG_INLINE Packet2cf pmul< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2cf ploadu< Packet2cf >(const std::complex< float > *from)
#define EIGEN_DEBUG_ALIGNED_STORE
iterative scaling algorithm to equilibrate rows and column norms in matrices
EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf &x, const Packet2cf &y, const Packet2cf &c) const
EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf &x, const Packet2cf &y, const Packet2cf &c) const
EIGEN_STRONG_INLINE Packet2cf pload< Packet2cf >(const std::complex< float > *from)
EIGEN_STRONG_INLINE Packet2cf pset1< Packet2cf >(const std::complex< float > &from)
static Packet16uc p16uc_FORWARD
EIGEN_STRONG_INLINE std::complex< float > pfirst< Packet2cf >(const Packet2cf &a)
#define EIGEN_DEBUG_UNALIGNED_STORE
static Packet16uc p16uc_REVERSE
#define EIGEN_DEBUG_ALIGNED_LOAD
static Packet16uc p16uc_PSET_HI
EIGEN_STRONG_INLINE Packet2cf psub< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
void pstore(Scalar *to, const Packet &from)
static Packet16uc p16uc_COMPLEX_REV2
EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf &a, const Packet2cf &b) const
EIGEN_STRONG_INLINE Packet2cf(const Packet4f &a)
EIGEN_STRONG_INLINE Packet2cf pmadd(const Packet2cf &x, const Packet2cf &y, const Packet2cf &c) const
void pstoreu(Scalar *to, const Packet &from)
static Packet16uc p16uc_COMPLEX_RE
EIGEN_STRONG_INLINE Packet4f ploadu< Packet4f >(const float *from)
EIGEN_STRONG_INLINE Packet2cf pand< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2cf()
unpacket_traits< Packet >::type pfirst(const Packet &a)
EIGEN_STRONG_INLINE std::complex< float > predux_mul< Packet2cf >(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet2cf pmul(const Packet2cf &a, const Packet2cf &b) const
EIGEN_STRONG_INLINE Packet2cf pconj(const Packet2cf &a)
EIGEN_STRONG_INLINE std::complex< float > predux< Packet2cf >(const Packet2cf &a)
EIGEN_STRONG_INLINE Packet2cf ploaddup< Packet2cf >(const std::complex< float > *from)
static Packet4f p4f_ZERO_
#define DST_CTRL(size, count, stride)
EIGEN_STRONG_INLINE Packet4f pload< Packet4f >(const float *from)
Packet pdiv(const Packet &a, const Packet &b)
static Packet16uc p16uc_COMPLEX_REV
EIGEN_STRONG_INLINE Packet2cf pnegate(const Packet2cf &a)
static Packet16uc p16uc_COMPLEX_IM
static EIGEN_STRONG_INLINE void run(Packet2cf &first, const Packet2cf &second)
__vector unsigned int Packet4ui
static Packet4ui p4ui_CONJ_XOR
Packet pmul(const Packet &a, const Packet &b)
std::complex< float > type
EIGEN_STRONG_INLINE Packet2cf pxor< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2cf padd< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2cf pandnot< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
Packet padd(const Packet &a, const Packet &b)
EIGEN_STRONG_INLINE Packet2cf pdiv< Packet2cf >(const Packet2cf &a, const Packet2cf &b)
EIGEN_STRONG_INLINE Packet2cf pcplxflip< Packet2cf >(const Packet2cf &x)
EIGEN_STRONG_INLINE Packet2cf preverse(const Packet2cf &a)