summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-07-30 13:52:11 +0000
committerNils Wallménius <nils@rockbox.org>2009-07-30 13:52:11 +0000
commit65140a2cd5dc214b8ced97874e6e3dcc6ff153eb (patch)
tree655b2cf1f750f29d37305b9f5b649202d4c5067e /apps/codecs
parentf95dc688cfbea5b3355bee0436767a8add8602d2 (diff)
downloadrockbox-65140a2cd5dc214b8ced97874e6e3dcc6ff153eb.zip
rockbox-65140a2cd5dc214b8ced97874e6e3dcc6ff153eb.tar.gz
rockbox-65140a2cd5dc214b8ced97874e6e3dcc6ff153eb.tar.bz2
rockbox-65140a2cd5dc214b8ced97874e6e3dcc6ff153eb.tar.xz
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
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/lib/asm_mcf5249.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/codecs/lib/asm_mcf5249.h b/apps/codecs/lib/asm_mcf5249.h
index e3dc8dd..88b7961 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
+