summaryrefslogtreecommitdiff
path: root/apps/codecs/libmad
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libmad')
-rw-r--r--apps/codecs/libmad/global.h4
-rw-r--r--apps/codecs/libmad/layer3.c8
-rw-r--r--apps/codecs/libmad/synth.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libmad/global.h b/apps/codecs/libmad/global.h
index 1ecfea1c14..38e4aade35 100644
--- a/apps/codecs/libmad/global.h
+++ b/apps/codecs/libmad/global.h
@@ -24,9 +24,9 @@
24# ifndef LIBMAD_GLOBAL_H 24# ifndef LIBMAD_GLOBAL_H
25# define LIBMAD_GLOBAL_H 25# define LIBMAD_GLOBAL_H
26 26
27#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 27#if defined(CPU_COLDFIRE)
28#define FPM_COLDFIRE_EMAC 28#define FPM_COLDFIRE_EMAC
29#elif defined(CPU_ARM) && !defined(SIMULATOR) 29#elif defined(CPU_ARM)
30#define FPM_ARM 30#define FPM_ARM
31#define ASO_IMDCT 31#define ASO_IMDCT
32#else 32#else
diff --git a/apps/codecs/libmad/layer3.c b/apps/codecs/libmad/layer3.c
index 64169a7cbd..38e488ddbb 100644
--- a/apps/codecs/libmad/layer3.c
+++ b/apps/codecs/libmad/layer3.c
@@ -46,7 +46,7 @@
46# include "layer3.h" 46# include "layer3.h"
47 47
48/* depending on the cpu "leftshift32" may be supported or not */ 48/* depending on the cpu "leftshift32" may be supported or not */
49# if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 49# if defined(CPU_COLDFIRE)
50#define MAXLSHIFT 32 50#define MAXLSHIFT 32
51#else 51#else
52#define MAXLSHIFT 31 52#define MAXLSHIFT 31
@@ -1569,7 +1569,7 @@ void III_aliasreduce(mad_fixed_t xr[576], int lines)
1569# if defined(ASO_ZEROCHECK) 1569# if defined(ASO_ZEROCHECK)
1570 if (a | b) { 1570 if (a | b) {
1571# endif 1571# endif
1572# if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 1572# if defined(CPU_COLDFIRE)
1573 (void)hi, (void)lo; 1573 (void)hi, (void)lo;
1574 asm volatile ("mac.l %[a], %[csi], %%acc0\n\t" 1574 asm volatile ("mac.l %[a], %[csi], %%acc0\n\t"
1575 "msac.l %[b], %[cai], %%acc0\n\t" 1575 "msac.l %[b], %[cai], %%acc0\n\t"
@@ -1796,7 +1796,7 @@ void imdct36(mad_fixed_t const x[18], mad_fixed_t y[36])
1796 * DESCRIPTION: perform X[18]->x[36] IMDCT 1796 * DESCRIPTION: perform X[18]->x[36] IMDCT
1797 */ 1797 */
1798 1798
1799# if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 1799# if defined(CPU_COLDFIRE)
1800/* emac optimized imdct36, it is very ugly and i hope to replace it soon. 1800/* emac optimized imdct36, it is very ugly and i hope to replace it soon.
1801 * for now it is actually somewhat faster than the stock implementation. 1801 * for now it is actually somewhat faster than the stock implementation.
1802 */ 1802 */
@@ -2813,7 +2813,7 @@ void III_imdct_l(mad_fixed_t const X[18], mad_fixed_t z[36],
2813 * DESCRIPTION: perform IMDCT and windowing for short blocks 2813 * DESCRIPTION: perform IMDCT and windowing for short blocks
2814 */ 2814 */
2815 2815
2816# if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 2816# if defined(CPU_COLDFIRE)
2817void III_imdct_s(mad_fixed_t const X[18], mad_fixed_t z[36]); 2817void III_imdct_s(mad_fixed_t const X[18], mad_fixed_t z[36]);
2818#else 2818#else
2819 2819
diff --git a/apps/codecs/libmad/synth.c b/apps/codecs/libmad/synth.c
index 2da8f64db7..8613f77f79 100644
--- a/apps/codecs/libmad/synth.c
+++ b/apps/codecs/libmad/synth.c
@@ -42,7 +42,7 @@ void mad_synth_init(struct mad_synth *synth)
42 synth->pcm.samplerate = 0; 42 synth->pcm.samplerate = 0;
43 synth->pcm.channels = 0; 43 synth->pcm.channels = 0;
44 synth->pcm.length = 0; 44 synth->pcm.length = 0;
45 #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 45 #if defined(CPU_COLDFIRE)
46 /* init the emac unit here, since this function should always be called 46 /* init the emac unit here, since this function should always be called
47 before using libmad */ 47 before using libmad */
48 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE | EMAC_ROUND); 48 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE | EMAC_ROUND);