]> granicus.if.org Git - libvpx/commitdiff
vpx_convolve8_neon,load/store*: correct param type
authorJames Zern <jzern@google.com>
Sat, 1 Oct 2016 18:03:29 +0000 (11:03 -0700)
committerJames Zern <jzern@google.com>
Sat, 1 Oct 2016 18:03:29 +0000 (11:03 -0700)
stride/pitch in convolve is expressed with a ptrdiff_t

Change-Id: Ia5a6732dc509f06ccf7035386fa8ae721b4b1a71

vpx_dsp/arm/vpx_convolve8_neon.c

index 01fa67acf335609035a25cea4dd37edd02ecb899..e16d33718aa072b75462b2752908ca3c7e539b0a 100644 (file)
@@ -29,7 +29,7 @@
 // instructions. This optimization is much faster in speed unit test, but slowed
 // down the whole decoder by 5%.
 
-static INLINE void load_8x4(const uint8_t *s, const int p, uint8x8_t *s0,
+static INLINE void load_8x4(const uint8_t *s, ptrdiff_t p, uint8x8_t *s0,
                             uint8x8_t *s1, uint8x8_t *s2, uint8x8_t *s3) {
   *s0 = vld1_u8(s);
   s += p;
@@ -40,7 +40,7 @@ static INLINE void load_8x4(const uint8_t *s, const int p, uint8x8_t *s0,
   *s3 = vld1_u8(s);
 }
 
-static INLINE void load_8x8(const uint8_t *s, const int p, uint8x8_t *s0,
+static INLINE void load_8x8(const uint8_t *s, ptrdiff_t p, uint8x8_t *s0,
                             uint8x8_t *s1, uint8x8_t *s2, uint8x8_t *s3,
                             uint8x8_t *s4, uint8x8_t *s5, uint8x8_t *s6,
                             uint8x8_t *s7) {
@@ -61,7 +61,7 @@ static INLINE void load_8x8(const uint8_t *s, const int p, uint8x8_t *s0,
   *s7 = vld1_u8(s);
 }
 
-static INLINE void store_8x8(uint8_t *s, const int p, const uint8x8_t s0,
+static INLINE void store_8x8(uint8_t *s, ptrdiff_t p, const uint8x8_t s0,
                              const uint8x8_t s1, const uint8x8_t s2,
                              const uint8x8_t s3, const uint8x8_t s4,
                              const uint8x8_t s5, const uint8x8_t s6,