summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2017-10-26 09:45:06 -0700
committerScott LaVarnway <slavarnway@google.com>2017-10-26 11:41:48 -0700
commit3bf02ad74af5602c153a318b04cc311acdc7584d (patch)
treed7271cf0c5a0ed39e024e2c9f7160fd93f7b7f07 /test
parent037e596f045f54369ba59b59757b8a7dfad9527c (diff)
downloadlibvpx-3bf02ad74af5602c153a318b04cc311acdc7584d.tar
libvpx-3bf02ad74af5602c153a318b04cc311acdc7584d.tar.gz
libvpx-3bf02ad74af5602c153a318b04cc311acdc7584d.tar.bz2
libvpx-3bf02ad74af5602c153a318b04cc311acdc7584d.zip
vpx: hadamard: use ptrdiff_t instead of int for stride
Eliminates the following instruction for the x86 (64 bit) intrinsic code: movslq %esi,%rax Change-Id: I8f5ebd40726f998708a668b0f52ea7a0576befae
Diffstat (limited to 'test')
-rw-r--r--test/hadamard_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/hadamard_test.cc b/test/hadamard_test.cc
index eacd84635..3b7cfeddc 100644
--- a/test/hadamard_test.cc
+++ b/test/hadamard_test.cc
@@ -22,7 +22,8 @@ namespace {
using ::libvpx_test::ACMRandom;
-typedef void (*HadamardFunc)(const int16_t *a, int a_stride, tran_low_t *b);
+typedef void (*HadamardFunc)(const int16_t *a, ptrdiff_t a_stride,
+ tran_low_t *b);
void hadamard_loop(const int16_t *a, int a_stride, int16_t *out) {
int16_t b[8];