]> granicus.if.org Git - libvpx/commitdiff
quiet -Warray-parameter warnings
authorJames Zern <jzern@google.com>
Thu, 9 Dec 2021 05:42:28 +0000 (21:42 -0800)
committerJames Zern <jzern@google.com>
Thu, 9 Dec 2021 19:11:19 +0000 (11:11 -0800)
w/gcc-11
this matches the definition of the function with the declaration

Change-Id: I757b731b9560cb0b0ceec4ec258ec5af5a183b3d

vpx_dsp/avg.c
vpx_dsp/x86/sad4d_avx2.c
vpx_dsp/x86/sad4d_avx512.c

index 1c45e8a73ddcbec1c851c9adbaba2ef99fb1af03..c87ab20ffe9d61adc7d6f07e59c1c4e2ce203751 100644 (file)
@@ -340,7 +340,7 @@ int vpx_satd_c(const tran_low_t *coeff, int length) {
 
 // Integer projection onto row vectors.
 // height: value range {16, 32, 64}.
-void vpx_int_pro_row_c(int16_t hbuf[16], const uint8_t *ref,
+void vpx_int_pro_row_c(int16_t *hbuf /*[16]*/, const uint8_t *ref,
                        const int ref_stride, const int height) {
   int idx;
   const int norm_factor = height >> 1;
index a5c4f8c5371f65efe1c957d22550075c8d7f3814..9dd066691885bba0c15b85818e466a9decc0432a 100644 (file)
@@ -22,8 +22,8 @@ static INLINE void calc_final_4(const __m256i *const sums /*[4]*/,
 }
 
 void vpx_sad32x32x4d_avx2(const uint8_t *src_ptr, int src_stride,
-                          const uint8_t *const ref_array[4], int ref_stride,
-                          uint32_t sad_array[4]) {
+                          const uint8_t *const ref_array[/*4*/], int ref_stride,
+                          uint32_t *sad_array /*[4]*/) {
   int i;
   const uint8_t *refs[4];
   __m256i sums[4];
@@ -127,8 +127,8 @@ void vpx_sad32x32x8_avx2(const uint8_t *src_ptr, int src_stride,
 }
 
 void vpx_sad64x64x4d_avx2(const uint8_t *src_ptr, int src_stride,
-                          const uint8_t *const ref_array[4], int ref_stride,
-                          uint32_t sad_array[4]) {
+                          const uint8_t *const ref_array[/*4*/], int ref_stride,
+                          uint32_t *sad_array /*[4]*/) {
   __m256i sums[4];
   int i;
   const uint8_t *refs[4];
index 4c5d70464de71d772cd9c99c48f0bf651e6d76ce..2fa9108718eb8dc456f9d6849d44dd0c8077ded3 100644 (file)
@@ -12,8 +12,8 @@
 #include "vpx/vpx_integer.h"
 
 void vpx_sad64x64x4d_avx512(const uint8_t *src_ptr, int src_stride,
-                            const uint8_t *const ref_array[4], int ref_stride,
-                            uint32_t res[4]) {
+                            const uint8_t *const ref_array[/*4*/],
+                            int ref_stride, uint32_t *res /*[4]*/) {
   __m512i src_reg, ref0_reg, ref1_reg, ref2_reg, ref3_reg;
   __m512i sum_ref0, sum_ref1, sum_ref2, sum_ref3;
   __m512i sum_mlow, sum_mhigh;