diff options
| author | Tomasz Malesinski <tomal@rockbox.org> | 2006-11-09 21:59:27 +0000 |
|---|---|---|
| committer | Tomasz Malesinski <tomal@rockbox.org> | 2006-11-09 21:59:27 +0000 |
| commit | 5c54ba49d5c05e394a31f3827f7c4a75e28d9999 (patch) | |
| tree | 096c978d3e4d259cc6cf08ee5ccdd4414d06c013 /apps/codecs/libffmpegFLAC | |
| parent | 2e383a430de025378bf17942a1cf5ea86860f700 (diff) | |
| download | rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.zip rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.tar.gz rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.tar.bz2 rockbox-5c54ba49d5c05e394a31f3827f7c4a75e28d9999.tar.xz | |
Added macros controlling what goes to IRAM on different targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libffmpegFLAC')
| -rw-r--r-- | apps/codecs/libffmpegFLAC/bitstream.h | 14 | ||||
| -rw-r--r-- | apps/codecs/libffmpegFLAC/decoder.c | 12 | ||||
| -rw-r--r-- | apps/codecs/libffmpegFLAC/decoder.h | 2 | ||||
| -rw-r--r-- | apps/codecs/libffmpegFLAC/shndec.c | 2 |
4 files changed, 19 insertions, 11 deletions
diff --git a/apps/codecs/libffmpegFLAC/bitstream.h b/apps/codecs/libffmpegFLAC/bitstream.h index 288d839..19f2b6e 100644 --- a/apps/codecs/libffmpegFLAC/bitstream.h +++ b/apps/codecs/libffmpegFLAC/bitstream.h @@ -18,6 +18,14 @@ #define ICODE_ATTR #endif +#ifndef ICODE_ATTR_FLAC +#define ICODE_ATTR_FLAC ICODE_ATTR +#endif + +#ifndef IBSS_ATTR_FLAC_DECODED0 +#define IBSS_ATTR_FLAC_DECODED0 IBSS_ATTR +#endif + /* Endian conversion routines for standalone compilation */ #ifdef BUILD_STANDALONE #ifdef BUILD_BIGENDIAN @@ -252,7 +260,7 @@ static inline unsigned int get_bits(GetBitContext *s, int n){ return tmp; } -unsigned int get_bits_long(GetBitContext *s, int n) ICODE_ATTR; +unsigned int get_bits_long(GetBitContext *s, int n) ICODE_ATTR_FLAC; /** * shows 0-17 bits. @@ -267,7 +275,7 @@ static inline unsigned int show_bits(GetBitContext *s, int n){ return tmp; } -unsigned int show_bits_long(GetBitContext *s, int n) ICODE_ATTR; +unsigned int show_bits_long(GetBitContext *s, int n) ICODE_ATTR_FLAC; static inline void skip_bits(GetBitContext *s, int n){ //Note gcc seems to optimize this to s->index+=n for the ALT_READER :)) @@ -328,6 +336,6 @@ static inline void init_get_bits(GetBitContext *s, } } -void align_get_bits(GetBitContext *s) ICODE_ATTR; +void align_get_bits(GetBitContext *s) ICODE_ATTR_FLAC; #endif /* BITSTREAM_H */ diff --git a/apps/codecs/libffmpegFLAC/decoder.c b/apps/codecs/libffmpegFLAC/decoder.c index 3d934d9..8a1f84c 100644 --- a/apps/codecs/libffmpegFLAC/decoder.c +++ b/apps/codecs/libffmpegFLAC/decoder.c @@ -99,7 +99,7 @@ static const uint8_t table_crc8[256] ICONST_ATTR = { 0xe6, 0xe1, 0xe8, 0xef, 0xfa, 0xfd, 0xf4, 0xf3 }; -static int64_t get_utf8(GetBitContext *gb) ICODE_ATTR; +static int64_t get_utf8(GetBitContext *gb) ICODE_ATTR_FLAC; static int64_t get_utf8(GetBitContext *gb) { uint64_t val; @@ -124,7 +124,7 @@ static int64_t get_utf8(GetBitContext *gb) return val; } -static int get_crc8(const uint8_t *buf, int count) ICODE_ATTR; +static int get_crc8(const uint8_t *buf, int count) ICODE_ATTR_FLAC; static int get_crc8(const uint8_t *buf, int count) { int crc=0; @@ -137,7 +137,7 @@ static int get_crc8(const uint8_t *buf, int count) return crc; } -static int decode_residuals(FLACContext *s, int32_t* decoded, int pred_order) ICODE_ATTR; +static int decode_residuals(FLACContext *s, int32_t* decoded, int pred_order) ICODE_ATTR_FLAC; static int decode_residuals(FLACContext *s, int32_t* decoded, int pred_order) { int i, tmp, partition, method_type, rice_order; @@ -177,7 +177,7 @@ static int decode_residuals(FLACContext *s, int32_t* decoded, int pred_order) return 0; } -static int decode_subframe_fixed(FLACContext *s, int32_t* decoded, int pred_order) ICODE_ATTR; +static int decode_subframe_fixed(FLACContext *s, int32_t* decoded, int pred_order) ICODE_ATTR_FLAC; static int decode_subframe_fixed(FLACContext *s, int32_t* decoded, int pred_order) { int i; @@ -224,7 +224,7 @@ static int decode_subframe_fixed(FLACContext *s, int32_t* decoded, int pred_orde return 0; } -static int decode_subframe_lpc(FLACContext *s, int32_t* decoded, int pred_order) ICODE_ATTR; +static int decode_subframe_lpc(FLACContext *s, int32_t* decoded, int pred_order) ICODE_ATTR_FLAC; static int decode_subframe_lpc(FLACContext *s, int32_t* decoded, int pred_order) { int sum, i, j; @@ -386,7 +386,7 @@ static inline int decode_subframe(FLACContext *s, int channel, int32_t* decoded) static int decode_frame(FLACContext *s, int32_t* decoded0, int32_t* decoded1, - void (*yield)(void)) ICODE_ATTR; + void (*yield)(void)) ICODE_ATTR_FLAC; static int decode_frame(FLACContext *s, int32_t* decoded0, int32_t* decoded1, diff --git a/apps/codecs/libffmpegFLAC/decoder.h b/apps/codecs/libffmpegFLAC/decoder.h index affec0a..0b148df 100644 --- a/apps/codecs/libffmpegFLAC/decoder.h +++ b/apps/codecs/libffmpegFLAC/decoder.h @@ -44,6 +44,6 @@ int flac_decode_frame(FLACContext *s, int32_t* decoded0, int32_t* decoded1, uint8_t *buf, int buf_size, - void (*yield)(void)) ICODE_ATTR; + void (*yield)(void)) ICODE_ATTR_FLAC; #endif diff --git a/apps/codecs/libffmpegFLAC/shndec.c b/apps/codecs/libffmpegFLAC/shndec.c index d7fc6a1..61b3703 100644 --- a/apps/codecs/libffmpegFLAC/shndec.c +++ b/apps/codecs/libffmpegFLAC/shndec.c @@ -83,7 +83,7 @@ static unsigned int get_uint(ShortenContext *s, int k) } #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) -static void coldfire_lshift_samples(int n, int shift, int32_t *samples) ICODE_ATTR; +static void coldfire_lshift_samples(int n, int shift, int32_t *samples) ICODE_ATTR_FLAC; static void coldfire_lshift_samples(int n, int shift, int32_t *samples) { /* |