summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2005-07-18 13:09:05 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2005-07-18 13:09:05 +0000
commit6753fb5138a399b51e65f1dc3e36e73427013379 (patch)
tree825ca333da3f9cb3edf96d024bdeb7c2495c8068
parentc6ff1f5eb541f9557e7fbc1449df9c024fd59a03 (diff)
downloadrockbox-6753fb5138a399b51e65f1dc3e36e73427013379.tar.gz
rockbox-6753fb5138a399b51e65f1dc3e36e73427013379.zip
oops... should compile without warnings now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7187 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/Tremor/asm_mcf5249.h2
-rw-r--r--apps/codecs/Tremor/vorbisfile.c4
-rw-r--r--apps/codecs/libFLAC/SOURCES2
-rw-r--r--apps/codecs/libFLAC/stream_decoder.c2
-rw-r--r--apps/codecs/liba52/parse.c2
-rw-r--r--apps/codecs/libmad/SOURCES2
-rw-r--r--apps/codecs/libmad/global.h2
-rw-r--r--apps/codecs/libmad/layer3.c4
-rw-r--r--apps/codecs/libmusepack/math.h2
-rw-r--r--apps/codecs/libmusepack/synth_filter.c4
-rw-r--r--apps/codecs/libwavpack/SOURCES2
-rw-r--r--apps/codecs/libwavpack/unpack.c6
-rw-r--r--apps/dsp.c2
13 files changed, 18 insertions, 18 deletions
diff --git a/apps/codecs/Tremor/asm_mcf5249.h b/apps/codecs/Tremor/asm_mcf5249.h
index 7b071f96c2..2dcff021a4 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#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 22#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
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/vorbisfile.c b/apps/codecs/Tremor/vorbisfile.c
index 060b0bac89..f6a208d1c7 100644
--- a/apps/codecs/Tremor/vorbisfile.c
+++ b/apps/codecs/Tremor/vorbisfile.c
@@ -1291,7 +1291,7 @@ int ov_pcm_seek(OggVorbis_File *vf,ogg_int64_t pos){
1291 if(ret<0)return(ret); 1291 if(ret<0)return(ret);
1292 _make_decode_ready(vf); 1292 _make_decode_ready(vf);
1293 1293
1294#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 1294#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
1295 mcf5249_init_mac(); 1295 mcf5249_init_mac();
1296#endif 1296#endif
1297 1297
@@ -1552,7 +1552,7 @@ long ov_read(OggVorbis_File *vf,char *buffer,int bytes_req,int *bitstream){
1552 1552
1553 if(vf->ready_state<OPENED)return(OV_EINVAL); 1553 if(vf->ready_state<OPENED)return(OV_EINVAL);
1554 1554
1555#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 1555#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
1556 mcf5249_init_mac(); 1556 mcf5249_init_mac();
1557#endif 1557#endif
1558 1558
diff --git a/apps/codecs/libFLAC/SOURCES b/apps/codecs/libFLAC/SOURCES
index d4b6ab532a..b6f21dc13f 100644
--- a/apps/codecs/libFLAC/SOURCES
+++ b/apps/codecs/libFLAC/SOURCES
@@ -10,6 +10,6 @@ md5.c
10memory.c 10memory.c
11seekable_stream_decoder.c 11seekable_stream_decoder.c
12stream_decoder.c 12stream_decoder.c
13#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 13#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
14coldfire.S 14coldfire.S
15#endif 15#endif
diff --git a/apps/codecs/libFLAC/stream_decoder.c b/apps/codecs/libFLAC/stream_decoder.c
index cb622a9695..ac398d0150 100644
--- a/apps/codecs/libFLAC/stream_decoder.c
+++ b/apps/codecs/libFLAC/stream_decoder.c
@@ -299,7 +299,7 @@ FLAC_API FLAC__StreamDecoderState FLAC__stream_decoder_init(FLAC__StreamDecoder
299 */ 299 */
300 FLAC__cpu_info(&decoder->private_->cpuinfo); 300 FLAC__cpu_info(&decoder->private_->cpuinfo);
301 /* first default to the non-asm routines */ 301 /* first default to the non-asm routines */
302#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 302#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
303 decoder->private_->local_lpc_restore_signal = FLAC__lpc_restore_signal_mcf5249; 303 decoder->private_->local_lpc_restore_signal = FLAC__lpc_restore_signal_mcf5249;
304 decoder->private_->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_mcf5249; 304 decoder->private_->local_lpc_restore_signal_16bit = FLAC__lpc_restore_signal_mcf5249;
305 decoder->private_->local_lpc_restore_signal_16bit_order8 = FLAC__lpc_restore_signal_mcf5249; 305 decoder->private_->local_lpc_restore_signal_16bit_order8 = FLAC__lpc_restore_signal_mcf5249;
diff --git a/apps/codecs/liba52/parse.c b/apps/codecs/liba52/parse.c
index c06381be9e..d5b323c701 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 #ifdef CPU_COLDFIRE && !defined(SIMULATOR) 61 #if defined(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 /*
diff --git a/apps/codecs/libmad/SOURCES b/apps/codecs/libmad/SOURCES
index 5e76423abf..72386d3bcb 100644
--- a/apps/codecs/libmad/SOURCES
+++ b/apps/codecs/libmad/SOURCES
@@ -9,6 +9,6 @@ stream.c
9synth.c 9synth.c
10timer.c 10timer.c
11version.c 11version.c
12#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 12#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
13imdct_mcf5249.S 13imdct_mcf5249.S
14#endif 14#endif
diff --git a/apps/codecs/libmad/global.h b/apps/codecs/libmad/global.h
index 17dd1dd804..5dee36c686 100644
--- a/apps/codecs/libmad/global.h
+++ b/apps/codecs/libmad/global.h
@@ -24,7 +24,7 @@
24# ifndef LIBMAD_GLOBAL_H 24# ifndef LIBMAD_GLOBAL_H
25# define LIBMAD_GLOBAL_H 25# define LIBMAD_GLOBAL_H
26 26
27#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 27#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
28#define FPM_COLDFIRE_EMAC 28#define FPM_COLDFIRE_EMAC
29#else 29#else
30#define FPM_DEFAULT 30#define FPM_DEFAULT
diff --git a/apps/codecs/libmad/layer3.c b/apps/codecs/libmad/layer3.c
index e8b80e7ce4..b5fa2be6f5 100644
--- a/apps/codecs/libmad/layer3.c
+++ b/apps/codecs/libmad/layer3.c
@@ -1765,7 +1765,7 @@ void imdct36(mad_fixed_t const x[18], mad_fixed_t y[36])
1765 * DESCRIPTION: perform X[18]->x[36] IMDCT 1765 * DESCRIPTION: perform X[18]->x[36] IMDCT
1766 */ 1766 */
1767 1767
1768# ifdef CPU_COLDFIRE && !defined(SIMULATOR) 1768# if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
1769/* emac optimized imdct36, it is very ugly and i hope to replace it soon. 1769/* emac optimized imdct36, it is very ugly and i hope to replace it soon.
1770 * for now it is actually somewhat faster than the stock implementation. 1770 * for now it is actually somewhat faster than the stock implementation.
1771 */ 1771 */
@@ -2729,7 +2729,7 @@ void III_imdct_l(mad_fixed_t const X[18], mad_fixed_t z[36],
2729 * DESCRIPTION: perform IMDCT and windowing for short blocks 2729 * DESCRIPTION: perform IMDCT and windowing for short blocks
2730 */ 2730 */
2731 2731
2732# ifdef CPU_COLDFIRE && !defined(SIMULATOR) 2732# if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
2733void III_imdct_s(mad_fixed_t const X[18], mad_fixed_t z[36]); 2733void III_imdct_s(mad_fixed_t const X[18], mad_fixed_t z[36]);
2734#else 2734#else
2735 2735
diff --git a/apps/codecs/libmusepack/math.h b/apps/codecs/libmusepack/math.h
index 532f1350c4..a89ef76f58 100644
--- a/apps/codecs/libmusepack/math.h
+++ b/apps/codecs/libmusepack/math.h
@@ -99,7 +99,7 @@ static inline MPC_SAMPLE_FORMAT MPC_MULTIPLY_EX(MPC_SAMPLE_FORMAT item1,MPC_SAMP
99#ifdef MPC_HAVE_MULHIGH 99#ifdef MPC_HAVE_MULHIGH
100#define MPC_MULTIPLY_FRACT(X,Y) _MulHigh(X,Y) 100#define MPC_MULTIPLY_FRACT(X,Y) _MulHigh(X,Y)
101#else 101#else
102#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 102#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
103/* loses one bit of accuracy. 103/* loses one bit of accuracy.
104 the rest of the macros won't be as easy as this... */ 104 the rest of the macros won't be as easy as this... */
105#define MPC_MULTIPLY_FRACT(X,Y) \ 105#define MPC_MULTIPLY_FRACT(X,Y) \
diff --git a/apps/codecs/libmusepack/synth_filter.c b/apps/codecs/libmusepack/synth_filter.c
index 105dbb0008..7644551d16 100644
--- a/apps/codecs/libmusepack/synth_filter.c
+++ b/apps/codecs/libmusepack/synth_filter.c
@@ -335,7 +335,7 @@ static void Synthese_Filter_float_internal(MPC_SAMPLE_FORMAT * OutData,MPC_SAMPL
335{ 335{
336 mpc_uint32_t n; 336 mpc_uint32_t n;
337 337
338 #ifdef CPU_COLDFIRE && !defined(SIMULATOR) 338 #if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
339 asm volatile ("move.l #0x20, %macsr"); /* fractional emac mode */ 339 asm volatile ("move.l #0x20, %macsr"); /* fractional emac mode */
340 #endif 340 #endif
341 for ( n = 0; n < 36; n++, Y += 32 ) { 341 for ( n = 0; n < 36; n++, Y += 32 ) {
@@ -350,7 +350,7 @@ static void Synthese_Filter_float_internal(MPC_SAMPLE_FORMAT * OutData,MPC_SAMPL
350 350
351 351
352 for ( k = 0; k < 32; k++, D += 16, V++ ) { 352 for ( k = 0; k < 32; k++, D += 16, V++ ) {
353 #ifdef CPU_COLDFIRE && !defined(SIMULATOR) 353 #if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
354 asm volatile ( 354 asm volatile (
355 "movem.l (%[D]), %%d0-%%d3\n\t" 355 "movem.l (%[D]), %%d0-%%d3\n\t"
356 "move.l (%[V]), %%a5\n\t" 356 "move.l (%[V]), %%a5\n\t"
diff --git a/apps/codecs/libwavpack/SOURCES b/apps/codecs/libwavpack/SOURCES
index 28e8fb3584..f63c55a87a 100644
--- a/apps/codecs/libwavpack/SOURCES
+++ b/apps/codecs/libwavpack/SOURCES
@@ -5,7 +5,7 @@ unpack.c
5pack.c 5pack.c
6words.c 6words.c
7wputils.c 7wputils.c
8#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 8#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
9coldfire.S 9coldfire.S
10#endif 10#endif
11 11
diff --git a/apps/codecs/libwavpack/unpack.c b/apps/codecs/libwavpack/unpack.c
index dcc776e42a..76198a7af8 100644
--- a/apps/codecs/libwavpack/unpack.c
+++ b/apps/codecs/libwavpack/unpack.c
@@ -286,7 +286,7 @@ 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#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 289#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
290extern void decorr_stereo_pass_cont_mcf5249 (struct decorr_pass *dpp, long *buffer, long sample_count); 290extern void decorr_stereo_pass_cont_mcf5249 (struct decorr_pass *dpp, long *buffer, long sample_count);
291#else 291#else
292static void decorr_stereo_pass_cont (struct decorr_pass *dpp, long *buffer, long sample_count); 292static void decorr_stereo_pass_cont (struct decorr_pass *dpp, long *buffer, long sample_count);
@@ -348,7 +348,7 @@ long unpack_samples (WavpackContext *wpc, long *buffer, ulong sample_count)
348 else 348 else
349 for (tcount = wps->num_terms, dpp = wps->decorr_passes; tcount--; dpp++) { 349 for (tcount = wps->num_terms, dpp = wps->decorr_passes; tcount--; dpp++) {
350 decorr_stereo_pass (dpp, buffer, 8); 350 decorr_stereo_pass (dpp, buffer, 8);
351#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 351#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
352 decorr_stereo_pass_cont_mcf5249 (dpp, buffer + 16, sample_count - 8); 352 decorr_stereo_pass_cont_mcf5249 (dpp, buffer + 16, sample_count - 8);
353#else 353#else
354 decorr_stereo_pass_cont (dpp, buffer + 16, sample_count - 8); 354 decorr_stereo_pass_cont (dpp, buffer + 16, sample_count - 8);
@@ -510,7 +510,7 @@ static void decorr_stereo_pass (struct decorr_pass *dpp, long *buffer, long samp
510 dpp->weight_B = weight_B; 510 dpp->weight_B = weight_B;
511} 511}
512 512
513#ifndef CPU_COLDFIRE || defined(SIMULATOR) 513#if !defined(CPU_COLDFIRE) || defined(SIMULATOR)
514 514
515static void decorr_stereo_pass_cont (struct decorr_pass *dpp, long *buffer, long sample_count) 515static void decorr_stereo_pass_cont (struct decorr_pass *dpp, long *buffer, long sample_count)
516{ 516{
diff --git a/apps/dsp.c b/apps/dsp.c
index 8e20a68aed..cd22610f74 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -36,7 +36,7 @@
36#define SAMPLE_BUF_SIZE 256 36#define SAMPLE_BUF_SIZE 256
37#define RESAMPLE_BUF_SIZE (256 * 4) /* Enough for 11,025 Hz -> 44,100 Hz*/ 37#define RESAMPLE_BUF_SIZE (256 * 4) /* Enough for 11,025 Hz -> 44,100 Hz*/
38 38
39#ifdef CPU_COLDFIRE && !defined(SIMULATOR) 39#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
40 40
41#define INIT() asm volatile ("move.l #0xb0, %macsr") /* frac, round, clip */ 41#define INIT() asm volatile ("move.l #0xb0, %macsr") /* frac, round, clip */
42/* Multiply 2 32-bit integers and return the 32 most significant bits of the 42/* Multiply 2 32-bit integers and return the 32 most significant bits of the