From 39bfbd43f05691874a78a5a6bf4504cf0e6ff452 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 28 Mar 2014 12:00:08 -0700 Subject: [PATCH] Properly align the input data to prevent false failures of the packetmath.cpp test. --- test/packetmath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/packetmath.cpp b/test/packetmath.cpp index 317b1c8fe..08566faf8 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -362,12 +362,12 @@ template void packetmath_scatter_gather() { typedef typename internal::packet_traits::type Packet; typedef typename NumTraits::Real RealScalar; const int PacketSize = internal::packet_traits::size; - Scalar data1[PacketSize]; + EIGEN_ALIGN_DEFAULT Scalar data1[PacketSize]; RealScalar refvalue = 0; for (int i=0; i()/RealScalar(PacketSize); } - Scalar buffer[PacketSize*11]; + EIGEN_ALIGN_DEFAULT Scalar buffer[PacketSize*11]; memset(buffer, 0, 11*sizeof(Packet)); Packet packet = internal::pload(data1); internal::pscatter(buffer, packet, 11);