aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/geo_hyperplane.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-03-27 15:29:56 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-03-27 15:29:56 +0100
commit6f123d209e65a8cf324df53a9a7e87d8e4c47e9f (patch)
tree789ad2f3eebc83beda12488d1eeda148a25689b2 /test/geo_hyperplane.cpp
parent052aedd3943717500f47d1f034e2b3ac072cfe36 (diff)
Fix geo_* unit tests with respect to AVX
Diffstat (limited to 'test/geo_hyperplane.cpp')
-rw-r--r--test/geo_hyperplane.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/geo_hyperplane.cpp b/test/geo_hyperplane.cpp
index befd7d483..ed5928f10 100644
--- a/test/geo_hyperplane.cpp
+++ b/test/geo_hyperplane.cpp
@@ -129,9 +129,9 @@ template<typename Scalar> void hyperplane_alignment()
typedef Hyperplane<Scalar,3,AutoAlign> Plane3a;
typedef Hyperplane<Scalar,3,DontAlign> Plane3u;
- EIGEN_ALIGN16 Scalar array1[4];
- EIGEN_ALIGN16 Scalar array2[4];
- EIGEN_ALIGN16 Scalar array3[4+1];
+ EIGEN_ALIGN_DEFAULT Scalar array1[4];
+ EIGEN_ALIGN_DEFAULT Scalar array2[4];
+ EIGEN_ALIGN_DEFAULT Scalar array3[4+1];
Scalar* array3u = array3+1;
Plane3a *p1 = ::new(reinterpret_cast<void*>(array1)) Plane3a;
@@ -146,7 +146,7 @@ template<typename Scalar> void hyperplane_alignment()
VERIFY_IS_APPROX(p1->coeffs(), p3->coeffs());
#if defined(EIGEN_VECTORIZE) && EIGEN_ALIGN_STATICALLY
- if(internal::packet_traits<Scalar>::Vectorizable)
+ if(internal::packet_traits<Scalar>::Vectorizable && internal::packet_traits<Scalar>::size<=4)
VERIFY_RAISES_ASSERT((::new(reinterpret_cast<void*>(array3u)) Plane3a));
#endif
}