diff options
author | Scott LaVarnway <slavarnway@google.com> | 2017-10-26 09:45:06 -0700 |
---|---|---|
committer | Scott LaVarnway <slavarnway@google.com> | 2017-10-26 11:41:48 -0700 |
commit | 3bf02ad74af5602c153a318b04cc311acdc7584d (patch) | |
tree | d7271cf0c5a0ed39e024e2c9f7160fd93f7b7f07 /vpx_dsp/ppc | |
parent | 037e596f045f54369ba59b59757b8a7dfad9527c (diff) | |
download | libvpx-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 'vpx_dsp/ppc')
-rw-r--r-- | vpx_dsp/ppc/hadamard_vsx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vpx_dsp/ppc/hadamard_vsx.c b/vpx_dsp/ppc/hadamard_vsx.c index 435e3eb5b..e279b3047 100644 --- a/vpx_dsp/ppc/hadamard_vsx.c +++ b/vpx_dsp/ppc/hadamard_vsx.c @@ -42,7 +42,7 @@ static void vpx_hadamard_s16_8x8_one_pass(int16x8_t v[8]) { v[7] = vec_add(c1, c5); } -void vpx_hadamard_8x8_vsx(const int16_t *src_diff, int src_stride, +void vpx_hadamard_8x8_vsx(const int16_t *src_diff, ptrdiff_t src_stride, tran_low_t *coeff) { int16x8_t v[8]; @@ -71,7 +71,7 @@ void vpx_hadamard_8x8_vsx(const int16_t *src_diff, int src_stride, store_tran_low(v[7], 0, coeff + 56); } -void vpx_hadamard_16x16_vsx(const int16_t *src_diff, int src_stride, +void vpx_hadamard_16x16_vsx(const int16_t *src_diff, ptrdiff_t src_stride, tran_low_t *coeff) { int i; const uint16x8_t ones = vec_splat_u16(1); |