aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/AltiVec/PacketMath.h
diff options
context:
space:
mode:
authorGravatar Konstantinos A. Margaritis <markos@codex.gr>2009-02-08 18:43:57 +0000
committerGravatar Konstantinos A. Margaritis <markos@codex.gr>2009-02-08 18:43:57 +0000
commit15e40b10993104a66f2dc46a0c30d48d9c669bf7 (patch)
tree8550a5db5dd00eb1ce0895ebd310b697ea38140a /Eigen/src/Core/arch/AltiVec/PacketMath.h
parent505bdbb9ef877b2a7d265322a902024d0d4481ec (diff)
fixed preserve_mask definition for AltiVec (needed __vector keyword)
Diffstat (limited to 'Eigen/src/Core/arch/AltiVec/PacketMath.h')
-rw-r--r--Eigen/src/Core/arch/AltiVec/PacketMath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/AltiVec/PacketMath.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h
index c5bcf02aa..e64983f36 100644
--- a/Eigen/src/Core/arch/AltiVec/PacketMath.h
+++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h
@@ -262,12 +262,12 @@ template<> inline int ei_pfirst(const v4i& a)
template<> EIGEN_STRONG_INLINE v4f ei_preverse(const v4f& a)
{
- static const unsigned char __attribute__(aligned(16)) reverse_mask = {12,13,14,15, 8,9,10,11, 4,5,6,7, 0,1,2,3};
+ static const __vector unsigned char reverse_mask = {12,13,14,15, 8,9,10,11, 4,5,6,7, 0,1,2,3};
return (v4f)vec_perm((__vector unsigned char)a,(__vector unsigned char)a,reverse_mask);
}
template<> EIGEN_STRONG_INLINE v4i ei_preverse(const v4i& a)
{
- static const unsigned char __attribute__(aligned(16)) reverse_mask = {12,13,14,15, 8,9,10,11, 4,5,6,7, 0,1,2,3};
+ static const __vector unsigned char __attribute__(aligned(16)) reverse_mask = {12,13,14,15, 8,9,10,11, 4,5,6,7, 0,1,2,3};
return (v4i)vec_perm((__vector unsigned char)a,(__vector unsigned char)a,reverse_mask);
}