summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-05-10 13:16:08 +0000
committerDave Chapman <dave@dchapman.com>2007-05-10 13:16:08 +0000
commitf02cba80967b7e42d03962625394bf5d1691a59c (patch)
treeab752be0024ec544500eaf6fcba4207848c9a89e /apps/codecs
parent1fc2d91a83f6154c11a203c8da993d647799691a (diff)
downloadrockbox-f02cba80967b7e42d03962625394bf5d1691a59c.tar.gz
rockbox-f02cba80967b7e42d03962625394bf5d1691a59c.zip
Code cleaning - remove some unnecessary defined(SIMULATOR) checks
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13369 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/Tremor/asm_mcf5249.h2
-rw-r--r--apps/codecs/Tremor/floor1.c2
-rw-r--r--apps/codecs/Tremor/vorbisfile.c2
-rw-r--r--apps/codecs/liba52/a52_internal.h2
-rw-r--r--apps/codecs/liba52/parse.c2
-rw-r--r--apps/codecs/libfaad/decoder.c2
-rw-r--r--apps/codecs/libfaad/fixed.h2
-rw-r--r--apps/codecs/libffmpegFLAC/decoder.c10
-rw-r--r--apps/codecs/libffmpegFLAC/shndec.c6
-rw-r--r--apps/codecs/libmad/global.h4
-rw-r--r--apps/codecs/libmad/layer3.c8
-rw-r--r--apps/codecs/libmad/synth.c2
-rw-r--r--apps/codecs/libmusepack/math.h4
-rw-r--r--apps/codecs/libmusepack/mpc_decoder.c2
-rw-r--r--apps/codecs/libmusepack/synth_filter.c4
-rw-r--r--apps/codecs/libspeex/config-speex.h2
-rw-r--r--apps/codecs/libwavpack/unpack.c10
17 files changed, 33 insertions, 33 deletions
diff --git a/apps/codecs/Tremor/asm_mcf5249.h b/apps/codecs/Tremor/asm_mcf5249.h
index 4d7f92c089..7d366fa9ca 100644
--- a/apps/codecs/Tremor/asm_mcf5249.h
+++ b/apps/codecs/Tremor/asm_mcf5249.h
@@ -19,7 +19,7 @@
19 19
20#include "os_types.h" 20#include "os_types.h"
21 21
22#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 22#if defined(CPU_COLDFIRE)
23 23
24/* attribute for 16-byte alignment */ 24/* attribute for 16-byte alignment */
25#define LINE_ATTR __attribute__ ((aligned (16))) 25#define LINE_ATTR __attribute__ ((aligned (16)))
diff --git a/apps/codecs/Tremor/floor1.c b/apps/codecs/Tremor/floor1.c
index a66e7379d7..5f43d563f0 100644
--- a/apps/codecs/Tremor/floor1.c
+++ b/apps/codecs/Tremor/floor1.c
@@ -197,7 +197,7 @@ static vorbis_look_floor *floor1_look(vorbis_dsp_state *vd,vorbis_info_mode *mi,
197static int render_point(int x0,int x1,int y0,int y1,int x){ 197static int render_point(int x0,int x1,int y0,int y1,int x){
198 y0&=0x7fff; /* mask off flag */ 198 y0&=0x7fff; /* mask off flag */
199 y1&=0x7fff; 199 y1&=0x7fff;
200#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 200#if defined(CPU_COLDFIRE)
201 asm volatile ("sub.l %[x0],%[x];" 201 asm volatile ("sub.l %[x0],%[x];"
202 "sub.l %[y0],%[y1];" 202 "sub.l %[y0],%[y1];"
203 "sub.l %[x0],%[x1];" 203 "sub.l %[x0],%[x1];"
diff --git a/apps/codecs/Tremor/vorbisfile.c b/apps/codecs/Tremor/vorbisfile.c
index 0f39826388..a32d9f2a48 100644
--- a/apps/codecs/Tremor/vorbisfile.c
+++ b/apps/codecs/Tremor/vorbisfile.c
@@ -763,7 +763,7 @@ int ov_clear(OggVorbis_File *vf){
763 763
764int ov_open_callbacks(void *f,OggVorbis_File *vf,char *initial,long ibytes, 764int ov_open_callbacks(void *f,OggVorbis_File *vf,char *initial,long ibytes,
765 ov_callbacks callbacks){ 765 ov_callbacks callbacks){
766 #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 766 #if defined(CPU_COLDFIRE)
767 /* this seems to be the closest we get to an init function, let's init emac 767 /* this seems to be the closest we get to an init function, let's init emac
768 here. rounding is disabled because of MULT31_SHIFT15, which will be 768 here. rounding is disabled because of MULT31_SHIFT15, which will be
769 inaccurate with rounding in its current incarnation */ 769 inaccurate with rounding in its current incarnation */
diff --git a/apps/codecs/liba52/a52_internal.h b/apps/codecs/liba52/a52_internal.h
index 14e5795146..cd3286b17a 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 defined(CPU_COLDFIRE) && !defined(SIMULATOR) 144#elif defined(CPU_COLDFIRE)
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 18fb901699..2a065b4fc4 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 defined(CPU_COLDFIRE) && !defined(SIMULATOR) 61 #if defined(CPU_COLDFIRE)
62 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_ROUND | EMAC_SATURATE); 62 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_ROUND | EMAC_SATURATE);
63 #endif 63 #endif
64 /* 64 /*
diff --git a/apps/codecs/libfaad/decoder.c b/apps/codecs/libfaad/decoder.c
index 145247784f..2285168253 100644
--- a/apps/codecs/libfaad/decoder.c
+++ b/apps/codecs/libfaad/decoder.c
@@ -95,7 +95,7 @@ NeAACDecHandle NEAACDECAPI NeAACDecOpen(void)
95 uint8_t i; 95 uint8_t i;
96 NeAACDecHandle hDecoder = NULL; 96 NeAACDecHandle hDecoder = NULL;
97 97
98 #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 98 #if defined(CPU_COLDFIRE)
99 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); 99 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
100 #endif 100 #endif
101 101
diff --git a/apps/codecs/libfaad/fixed.h b/apps/codecs/libfaad/fixed.h
index 7478d2ef0f..da895e81bc 100644
--- a/apps/codecs/libfaad/fixed.h
+++ b/apps/codecs/libfaad/fixed.h
@@ -59,7 +59,7 @@ typedef int32_t real_t;
59#define Q2_PRECISION (1 << Q2_BITS) 59#define Q2_PRECISION (1 << Q2_BITS)
60#define Q2_CONST(A) (((A) >= 0) ? ((real_t)((A)*(Q2_PRECISION)+0.5)) : ((real_t)((A)*(Q2_PRECISION)-0.5))) 60#define Q2_CONST(A) (((A) >= 0) ? ((real_t)((A)*(Q2_PRECISION)+0.5)) : ((real_t)((A)*(Q2_PRECISION)-0.5)))
61 61
62#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 62#if defined(CPU_COLDFIRE)
63 63
64static INLINE real_t MUL_F(real_t A, real_t B) 64static INLINE real_t MUL_F(real_t A, real_t B)
65{ 65{
diff --git a/apps/codecs/libffmpegFLAC/decoder.c b/apps/codecs/libffmpegFLAC/decoder.c
index 8a1f84c6b6..88fcbfd0bd 100644
--- a/apps/codecs/libffmpegFLAC/decoder.c
+++ b/apps/codecs/libffmpegFLAC/decoder.c
@@ -42,9 +42,9 @@
42 42
43#include "decoder.h" 43#include "decoder.h"
44 44
45#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 45#if defined(CPU_COLDFIRE)
46#include "coldfire.h" 46#include "coldfire.h"
47#elif defined(CPU_ARM) && !defined(SIMULATOR) 47#elif defined(CPU_ARM)
48#include "arm.h" 48#include "arm.h"
49#endif 49#endif
50 50
@@ -260,11 +260,11 @@ static int decode_subframe_lpc(FLACContext *s, int32_t* decoded, int pred_order)
260 return -8; 260 return -8;
261 261
262 if ((s->bps + coeff_prec + av_log2(pred_order)) <= 32) { 262 if ((s->bps + coeff_prec + av_log2(pred_order)) <= 32) {
263 #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 263 #if defined(CPU_COLDFIRE)
264 (void)sum; 264 (void)sum;
265 lpc_decode_emac(s->blocksize - pred_order, qlevel, pred_order, 265 lpc_decode_emac(s->blocksize - pred_order, qlevel, pred_order,
266 decoded + pred_order, coeffs); 266 decoded + pred_order, coeffs);
267 #elif defined(CPU_ARM) && !defined(SIMULATOR) 267 #elif defined(CPU_ARM)
268 (void)sum; 268 (void)sum;
269 lpc_decode_arm(s->blocksize - pred_order, qlevel, pred_order, 269 lpc_decode_arm(s->blocksize - pred_order, qlevel, pred_order,
270 decoded + pred_order, coeffs); 270 decoded + pred_order, coeffs);
@@ -278,7 +278,7 @@ static int decode_subframe_lpc(FLACContext *s, int32_t* decoded, int pred_order)
278 } 278 }
279 #endif 279 #endif
280 } else { 280 } else {
281 #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 281 #if defined(CPU_COLDFIRE)
282 (void)wsum; 282 (void)wsum;
283 (void)j; 283 (void)j;
284 lpc_decode_emac_wide(s->blocksize - pred_order, qlevel, pred_order, 284 lpc_decode_emac_wide(s->blocksize - pred_order, qlevel, pred_order,
diff --git a/apps/codecs/libffmpegFLAC/shndec.c b/apps/codecs/libffmpegFLAC/shndec.c
index 61b3703188..1afcff6fbe 100644
--- a/apps/codecs/libffmpegFLAC/shndec.c
+++ b/apps/codecs/libffmpegFLAC/shndec.c
@@ -82,7 +82,7 @@ static unsigned int get_uint(ShortenContext *s, int k)
82 return get_ur_golomb_shorten(&s->gb, k); 82 return get_ur_golomb_shorten(&s->gb, k);
83} 83}
84 84
85#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 85#if defined(CPU_COLDFIRE)
86static void coldfire_lshift_samples(int n, int shift, int32_t *samples) ICODE_ATTR_FLAC; 86static void coldfire_lshift_samples(int n, int shift, int32_t *samples) ICODE_ATTR_FLAC;
87static void coldfire_lshift_samples(int n, int shift, int32_t *samples) 87static void coldfire_lshift_samples(int n, int shift, int32_t *samples)
88{ 88{
@@ -132,7 +132,7 @@ static inline void fix_bitshift(ShortenContext *s, int32_t *samples)
132 /* Wrapped samples don't get bitshifted, so we'll do them during 132 /* Wrapped samples don't get bitshifted, so we'll do them during
133 the next iteration. */ 133 the next iteration. */
134 if (s->bitshift != 0) { 134 if (s->bitshift != 0) {
135#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 135#if defined(CPU_COLDFIRE)
136 coldfire_lshift_samples(s->blocksize, s->bitshift, samples - s->nwrap); 136 coldfire_lshift_samples(s->blocksize, s->bitshift, samples - s->nwrap);
137#else 137#else
138 for (i = -s->nwrap; i < (s->blocksize - s->nwrap); i++) 138 for (i = -s->nwrap; i < (s->blocksize - s->nwrap); i++)
@@ -349,7 +349,7 @@ int shorten_decode_frames(ShortenContext *s, int *nsamples,
349 349
350 /* Scale the samples for the pcmbuf */ 350 /* Scale the samples for the pcmbuf */
351 int scale = SHN_OUTPUT_DEPTH - s->bits_per_sample; 351 int scale = SHN_OUTPUT_DEPTH - s->bits_per_sample;
352#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 352#if defined(CPU_COLDFIRE)
353 coldfire_lshift_samples(*nsamples, scale, decoded0 + s->nwrap); 353 coldfire_lshift_samples(*nsamples, scale, decoded0 + s->nwrap);
354 coldfire_lshift_samples(*nsamples, scale, decoded1 + s->nwrap); 354 coldfire_lshift_samples(*nsamples, scale, decoded1 + s->nwrap);
355#else 355#else
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);
diff --git a/apps/codecs/libmusepack/math.h b/apps/codecs/libmusepack/math.h
index eb9b0e978a..f9e9d08b08 100644
--- a/apps/codecs/libmusepack/math.h
+++ b/apps/codecs/libmusepack/math.h
@@ -68,7 +68,7 @@ typedef mpc_int64_t MPC_SAMPLE_FORMAT_MULTIPLY;
68#define MAKE_MPC_SAMPLE(X) (MPC_SAMPLE_FORMAT)((double)(X) * (double)(((mpc_int64_t)1)<<MPC_FIXED_POINT_FRACTPART)) 68#define MAKE_MPC_SAMPLE(X) (MPC_SAMPLE_FORMAT)((double)(X) * (double)(((mpc_int64_t)1)<<MPC_FIXED_POINT_FRACTPART))
69#define MAKE_MPC_SAMPLE_EX(X,Y) (MPC_SAMPLE_FORMAT)((double)(X) * (double)(((mpc_int64_t)1)<<(Y))) 69#define MAKE_MPC_SAMPLE_EX(X,Y) (MPC_SAMPLE_FORMAT)((double)(X) * (double)(((mpc_int64_t)1)<<(Y)))
70 70
71#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 71#if defined(CPU_COLDFIRE)
72 72
73#define MPC_MULTIPLY(X,Y) mpc_multiply((X), (Y)) 73#define MPC_MULTIPLY(X,Y) mpc_multiply((X), (Y))
74#define MPC_MULTIPLY_EX(X,Y,Z) mpc_multiply_ex((X), (Y), (Z)) 74#define MPC_MULTIPLY_EX(X,Y,Z) mpc_multiply_ex((X), (Y), (Z))
@@ -158,7 +158,7 @@ static inline MPC_SAMPLE_FORMAT MPC_MULTIPLY_EX(MPC_SAMPLE_FORMAT item1,MPC_SAMP
158#ifdef MPC_HAVE_MULHIGH 158#ifdef MPC_HAVE_MULHIGH
159#define MPC_MULTIPLY_FRACT(X,Y) _MulHigh(X,Y) 159#define MPC_MULTIPLY_FRACT(X,Y) _MulHigh(X,Y)
160#else 160#else
161#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 161#if defined(CPU_COLDFIRE)
162/* loses one bit of accuracy. 162/* loses one bit of accuracy.
163 the rest of the macros won't be as easy as this... */ 163 the rest of the macros won't be as easy as this... */
164#define MPC_MULTIPLY_FRACT(X,Y) \ 164#define MPC_MULTIPLY_FRACT(X,Y) \
diff --git a/apps/codecs/libmusepack/mpc_decoder.c b/apps/codecs/libmusepack/mpc_decoder.c
index 89d7254356..a5a24d6c8a 100644
--- a/apps/codecs/libmusepack/mpc_decoder.c
+++ b/apps/codecs/libmusepack/mpc_decoder.c
@@ -1492,7 +1492,7 @@ void mpc_decoder_setup(mpc_decoder *d, mpc_reader *r)
1492 d->Y_L = Y_L; 1492 d->Y_L = Y_L;
1493 d->Y_R = Y_R; 1493 d->Y_R = Y_R;
1494 1494
1495 #if defined(CPU_COLDFIRE)&& !defined(SIMULATOR) 1495 #if defined(CPU_COLDFIRE)
1496 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE); 1496 coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
1497 #endif 1497 #endif
1498} 1498}
diff --git a/apps/codecs/libmusepack/synth_filter.c b/apps/codecs/libmusepack/synth_filter.c
index 2b14c26c92..0dabe59150 100644
--- a/apps/codecs/libmusepack/synth_filter.c
+++ b/apps/codecs/libmusepack/synth_filter.c
@@ -343,7 +343,7 @@ static void Synthese_Filter_float_internal(MPC_SAMPLE_FORMAT * OutData,MPC_SAMPL
343 343
344 344
345 345
346 #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 346 #if defined(CPU_COLDFIRE)
347 for ( k = 0; k < 32; k++, D += 16, V++ ) { 347 for ( k = 0; k < 32; k++, D += 16, V++ ) {
348 asm volatile ( 348 asm volatile (
349 "movem.l (%[D]), %%d0-%%d3 \n\t" 349 "movem.l (%[D]), %%d0-%%d3 \n\t"
@@ -372,7 +372,7 @@ static void Synthese_Filter_float_internal(MPC_SAMPLE_FORMAT * OutData,MPC_SAMPL
372 : [Data] "+a" (Data) 372 : [Data] "+a" (Data)
373 : [V] "a" (V), [D] "a" (D) 373 : [V] "a" (V), [D] "a" (D)
374 : "d0", "d1", "d2", "d3", "a5"); 374 : "d0", "d1", "d2", "d3", "a5");
375 #elif defined(CPU_ARM) && !defined(SIMULATOR) 375 #elif defined(CPU_ARM)
376 for ( k = 0; k < 32; k++, V++ ) { 376 for ( k = 0; k < 32; k++, V++ ) {
377 asm volatile ( 377 asm volatile (
378 "ldmia %[D]!, { r0-r3 } \n\t" 378 "ldmia %[D]!, { r0-r3 } \n\t"
diff --git a/apps/codecs/libspeex/config-speex.h b/apps/codecs/libspeex/config-speex.h
index 10555c7fa8..efdb7dbb54 100644
--- a/apps/codecs/libspeex/config-speex.h
+++ b/apps/codecs/libspeex/config-speex.h
@@ -7,7 +7,7 @@
7/* #undef ARM4_ASM */ 7/* #undef ARM4_ASM */
8 8
9/* Make use of ARM5E assembly optimizations */ 9/* Make use of ARM5E assembly optimizations */
10#if defined(CPU_ARM) && !defined(SIMULATOR) 10#if defined(CPU_ARM)
11#define ARM4_ASM 11#define ARM4_ASM
12#endif 12#endif
13 13
diff --git a/apps/codecs/libwavpack/unpack.c b/apps/codecs/libwavpack/unpack.c
index daf88718c8..f2eca7619f 100644
--- a/apps/codecs/libwavpack/unpack.c
+++ b/apps/codecs/libwavpack/unpack.c
@@ -286,9 +286,9 @@ int read_config_info (WavpackContext *wpc, WavpackMetadata *wpmd)
286// samples unpacked, which can be less than the number requested if an error 286// samples unpacked, which can be less than the number requested if an error
287// occurs or the end of the block is reached. 287// occurs or the end of the block is reached.
288 288
289#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 289#if defined(CPU_COLDFIRE)
290extern void decorr_stereo_pass_cont_mcf5249 (struct decorr_pass *dpp, int32_t *buffer, int32_t sample_count); 290extern void decorr_stereo_pass_cont_mcf5249 (struct decorr_pass *dpp, int32_t *buffer, int32_t sample_count);
291#elif defined(CPU_ARM) && !defined(SIMULATOR) 291#elif defined(CPU_ARM)
292extern void decorr_stereo_pass_cont_arm (struct decorr_pass *dpp, int32_t *buffer, int32_t sample_count); 292extern void decorr_stereo_pass_cont_arm (struct decorr_pass *dpp, int32_t *buffer, int32_t sample_count);
293extern void decorr_stereo_pass_cont_arml (struct decorr_pass *dpp, int32_t *buffer, int32_t sample_count); 293extern void decorr_stereo_pass_cont_arml (struct decorr_pass *dpp, int32_t *buffer, int32_t sample_count);
294#else 294#else
@@ -351,9 +351,9 @@ int32_t unpack_samples (WavpackContext *wpc, int32_t *buffer, uint32_t sample_co
351 else 351 else
352 for (tcount = wps->num_terms, dpp = wps->decorr_passes; tcount--; dpp++) { 352 for (tcount = wps->num_terms, dpp = wps->decorr_passes; tcount--; dpp++) {
353 decorr_stereo_pass (dpp, buffer, 8); 353 decorr_stereo_pass (dpp, buffer, 8);
354#if defined(CPU_COLDFIRE) && !defined(SIMULATOR) 354#if defined(CPU_COLDFIRE)
355 decorr_stereo_pass_cont_mcf5249 (dpp, buffer + 16, sample_count - 8); 355 decorr_stereo_pass_cont_mcf5249 (dpp, buffer + 16, sample_count - 8);
356#elif defined(CPU_ARM) && !defined(SIMULATOR) 356#elif defined(CPU_ARM)
357 if (((flags & MAG_MASK) >> MAG_LSB) > 15) 357 if (((flags & MAG_MASK) >> MAG_LSB) > 15)
358 decorr_stereo_pass_cont_arml (dpp, buffer + 16, sample_count - 8); 358 decorr_stereo_pass_cont_arml (dpp, buffer + 16, sample_count - 8);
359 else 359 else
@@ -525,7 +525,7 @@ static void decorr_stereo_pass (struct decorr_pass *dpp, int32_t *buffer, int32_
525 dpp->weight_B = weight_B; 525 dpp->weight_B = weight_B;
526} 526}
527 527
528#if (!defined(CPU_COLDFIRE) && !defined(CPU_ARM)) || defined(SIMULATOR) 528#if (!defined(CPU_COLDFIRE) && !defined(CPU_ARM))
529 529
530static void decorr_stereo_pass_cont (struct decorr_pass *dpp, int32_t *buffer, int32_t sample_count) 530static void decorr_stereo_pass_cont (struct decorr_pass *dpp, int32_t *buffer, int32_t sample_count)
531{ 531{