diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2005-07-18 12:40:29 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2005-07-18 12:40:29 +0000 |
commit | c6ff1f5eb541f9557e7fbc1449df9c024fd59a03 (patch) | |
tree | ae38d203a3fcc15b1d897afe31c5a4f9099ac247 /apps/codecs/liba52 | |
parent | f5df9cd81c685b01b5e72e4a05471d97ffa7d260 (diff) | |
download | rockbox-c6ff1f5eb541f9557e7fbc1449df9c024fd59a03.tar.gz rockbox-c6ff1f5eb541f9557e7fbc1449df9c024fd59a03.zip |
Added CPU_COLDFIRE define - one step closer to iAudio-port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/liba52')
-rw-r--r-- | apps/codecs/liba52/a52_internal.h | 2 | ||||
-rw-r--r-- | apps/codecs/liba52/parse.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/liba52/a52_internal.h b/apps/codecs/liba52/a52_internal.h index 4de21d9dde..14e5795146 100644 --- a/apps/codecs/liba52/a52_internal.h +++ b/apps/codecs/liba52/a52_internal.h | |||
@@ -141,7 +141,7 @@ typedef int16_t quantizer_t; | |||
141 | #if 0 | 141 | #if 0 |
142 | #define MUL(a,b) ((int)(((int64_t)(a) * (b) + (1 << 29)) >> 30)) | 142 | #define MUL(a,b) ((int)(((int64_t)(a) * (b) + (1 << 29)) >> 30)) |
143 | #define MUL_L(a,b) ((int)(((int64_t)(a) * (b) + (1 << 25)) >> 26)) | 143 | #define MUL_L(a,b) ((int)(((int64_t)(a) * (b) + (1 << 25)) >> 26)) |
144 | #elif CONFIG_CPU==MCF5249 && !defined(SIMULATOR) | 144 | #elif defined(CPU_COLDFIRE) && !defined(SIMULATOR) |
145 | /* loses 1 bit of accuracy */ | 145 | /* loses 1 bit of accuracy */ |
146 | #define MUL(a, b) \ | 146 | #define MUL(a, b) \ |
147 | ({ \ | 147 | ({ \ |
diff --git a/apps/codecs/liba52/parse.c b/apps/codecs/liba52/parse.c index 3025fb54b6..c06381be9e 100644 --- a/apps/codecs/liba52/parse.c +++ b/apps/codecs/liba52/parse.c | |||
@@ -58,7 +58,7 @@ a52_state_t * a52_init (uint32_t mm_accel) | |||
58 | a52_state_t * state; | 58 | a52_state_t * state; |
59 | int i; | 59 | int i; |
60 | 60 | ||
61 | #if CONFIG_CPU==MCF5249 && !defined(SIMULATOR) | 61 | #ifdef CPU_COLDFIRE && !defined(SIMULATOR) |
62 | asm volatile ("move.l #0x30, %macsr"); /* frac. mode with rounding */ | 62 | asm volatile ("move.l #0x30, %macsr"); /* frac. mode with rounding */ |
63 | #endif | 63 | #endif |
64 | /* | 64 | /* |