shithub: libvpx

Download patch

ref: 52889c101642f4b7bbc3532a0badb37926e4b9c4
parent: cf82222316ee9f5d95c5bc3cb23b500281bbb480
parent: 9222d467e71c48bda5becc6fe265bf1117ebe993
author: James Zern <[email protected]>
date: Fri Apr 22 16:03:06 EDT 2016

Merge "hadamard_test: align src/dst buffers"

--- a/test/hadamard_test.cc
+++ b/test/hadamard_test.cc
@@ -71,7 +71,9 @@
 }
 
 TEST_P(HadamardTest, CompareReferenceRandom) {
-  int16_t a[64], b[64], b_ref[64];
+  DECLARE_ALIGNED(16, int16_t, a[64]);
+  DECLARE_ALIGNED(16, int16_t, b[64]);
+  int16_t b_ref[64];
   for (int i = 0; i < 64; i++) {
     a[i] = rnd_.Rand9Signed();
   }
@@ -88,7 +90,9 @@
 }
 
 TEST_P(HadamardTest, VaryStride) {
-  int16_t a[64 * 8], b[64], b_ref[64];
+  DECLARE_ALIGNED(16, int16_t, a[64 * 8]);
+  DECLARE_ALIGNED(16, int16_t, b[64]);
+  int16_t b_ref[64];
   for (int i = 0; i < 64 * 8; i++) {
     a[i] = rnd_.Rand9Signed();
   }