From 151424a6fd0ba1f6e99b2c61bc85a068f4676cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Wed, 21 Sep 2011 15:38:54 +0000 Subject: codeclib/libtremor: Clean up duplication of inline funcs, constify the ones in codeclib and copy over the slightly faster MULT31_SHIFT15 from tremor for cf. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30578 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/lib/codeclib_misc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/codecs/lib/codeclib_misc.h') diff --git a/apps/codecs/lib/codeclib_misc.h b/apps/codecs/lib/codeclib_misc.h index 08be937..8ebe22e 100644 --- a/apps/codecs/lib/codeclib_misc.h +++ b/apps/codecs/lib/codeclib_misc.h @@ -187,7 +187,7 @@ static inline void XNPROD31(int32_t a, int32_t b, #define _V_VECT_OPS static inline -void vect_add(int32_t *x, int32_t *y, int n) +void vect_add(int32_t *x, const int32_t *y, int n) { while (n>0) { *x++ += *y++; @@ -196,7 +196,7 @@ void vect_add(int32_t *x, int32_t *y, int n) } static inline -void vect_copy(int32_t *x, int32_t *y, int n) +void vect_copy(int32_t *x, const int32_t *y, int n) { while (n>0) { *x++ = *y++; @@ -205,7 +205,7 @@ void vect_copy(int32_t *x, int32_t *y, int n) } static inline -void vect_mult_fw(int32_t *data, int32_t *window, int n) +void vect_mult_fw(int32_t *data, const int32_t *window, int n) { while(n>0) { *data = MULT31(*data, *window); @@ -216,7 +216,7 @@ void vect_mult_fw(int32_t *data, int32_t *window, int n) } static inline -void vect_mult_bw(int32_t *data, int32_t *window, int n) +void vect_mult_bw(int32_t *data, const int32_t *window, int n) { while(n>0) { *data = MULT31(*data, *window); -- cgit v1.1