diff ppc/int_altivec.c @ 11981:d3551fcf4c1c libavcodec

Add const to some pointer parameters. Patch by Eli Friedman, eli D friedman A gmail
author cehoyos
date Sun, 27 Jun 2010 15:11:38 +0000
parents 7dd2a45249a9
children
line wrap: on
line diff
--- a/ppc/int_altivec.c	Sun Jun 27 12:21:12 2010 +0000
+++ b/ppc/int_altivec.c	Sun Jun 27 15:11:38 2010 +0000
@@ -79,7 +79,7 @@
     return u.score[3];
 }
 
-static int32_t scalarproduct_int16_altivec(int16_t * v1, int16_t * v2, int order, const int shift)
+static int32_t scalarproduct_int16_altivec(const int16_t * v1, const int16_t * v2, int order, const int shift)
 {
     int i;
     LOAD_ZERO;
@@ -109,7 +109,7 @@
     return ires;
 }
 
-static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1, int16_t *v2, int16_t *v3, int order, int mul)
+static int32_t scalarproduct_and_madd_int16_altivec(int16_t *v1, const int16_t *v2, const int16_t *v3, int order, int mul)
 {
     LOAD_ZERO;
     vec_s16 *pv1 = (vec_s16*)v1;