aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2014-03-28 12:00:08 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2014-03-28 12:00:08 -0700
commit39bfbd43f05691874a78a5a6bf4504cf0e6ff452 (patch)
treec62cb23b5425aa438912cd5483184d3bb303ab43 /test
parent10aa14592a179931ad605bce44a64b31a79ce007 (diff)
Properly align the input data to prevent false failures of the packetmath.cpp test.
Diffstat (limited to 'test')
-rw-r--r--test/packetmath.cpp4
1 files 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<typename Scalar> void packetmath_scatter_gather() {
typedef typename internal::packet_traits<Scalar>::type Packet;
typedef typename NumTraits<Scalar>::Real RealScalar;
const int PacketSize = internal::packet_traits<Scalar>::size;
- Scalar data1[PacketSize];
+ EIGEN_ALIGN_DEFAULT Scalar data1[PacketSize];
RealScalar refvalue = 0;
for (int i=0; i<PacketSize; ++i) {
data1[i] = internal::random<Scalar>()/RealScalar(PacketSize);
}
- Scalar buffer[PacketSize*11];
+ EIGEN_ALIGN_DEFAULT Scalar buffer[PacketSize*11];
memset(buffer, 0, 11*sizeof(Packet));
Packet packet = internal::pload<Packet>(data1);
internal::pscatter<Scalar, Packet>(buffer, packet, 11);