From 65140a2cd5dc214b8ced97874e6e3dcc6ff153eb Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Thu, 30 Jul 2009 13:52:11 +0000 Subject: Slight whitespace cleanup, add a const qualifier. No functional changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22087 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/lib/asm_mcf5249.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'apps') diff --git a/apps/codecs/lib/asm_mcf5249.h b/apps/codecs/lib/asm_mcf5249.h index e3dc8dd684..88b7961431 100644 --- a/apps/codecs/lib/asm_mcf5249.h +++ b/apps/codecs/lib/asm_mcf5249.h @@ -19,8 +19,6 @@ ****************************************************************************/ /* asm routines for wide math on the MCF5249 */ -//#include "os_types.h" - #if defined(CPU_COLDFIRE) /* attribute for 16-byte alignment */ @@ -43,7 +41,6 @@ static inline int32_t MULT32(int32_t x, int32_t y) { } static inline int32_t MULT31(int32_t x, int32_t y) { - asm volatile ("mac.l %[x], %[y], %%acc0;" /* multiply */ "movclr.l %%acc0, %[x];" /* move and clear */ : [x] "+&r" (x) @@ -52,7 +49,6 @@ static inline int32_t MULT31(int32_t x, int32_t y) { return x; } - static inline int32_t MULT31_SHIFT15(int32_t x, int32_t y) { int32_t r; @@ -70,7 +66,6 @@ static inline int32_t MULT31_SHIFT15(int32_t x, int32_t y) { return r; } - static inline void XPROD31(int32_t a, int32_t b, int32_t t, int32_t v, @@ -90,7 +85,6 @@ void XPROD31(int32_t a, int32_t b, : "cc", "memory"); } - static inline void XNPROD31(int32_t a, int32_t b, int32_t t, int32_t v, @@ -110,7 +104,6 @@ void XNPROD31(int32_t a, int32_t b, : "cc", "memory"); } - #if 0 /* canonical Tremor definition */ #define XPROD32(_a, _b, _t, _v, _x, _y) \ { (_x)=MULT32(_a,_t)+MULT32(_b,_v); \ @@ -140,7 +133,7 @@ void XNPROD31(int32_t a, int32_t b, /* asm versions of vector operations for block.c, window.c */ /* assumes MAC is initialized & accumulators cleared */ 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) { /* align to 16 bytes */ while(n>0 && (int)x&15) { @@ -199,7 +192,6 @@ 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) { @@ -325,3 +317,4 @@ static inline int32_t CLIP_TO_15(register int32_t x) { #else #define LINE_ATTR #endif + -- cgit v1.2.3