1
0
Fork 0
forked from len0rd/rockbox

Move all code into IRAM

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7740 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-11-03 15:32:40 +00:00
parent c43822d102
commit 6f7f921ebe
4 changed files with 16 additions and 6 deletions

View file

@ -252,7 +252,7 @@ static inline unsigned int get_bits(GetBitContext *s, int n){
return tmp; return tmp;
} }
unsigned int get_bits_long(GetBitContext *s, int n); unsigned int get_bits_long(GetBitContext *s, int n) ICODE_ATTR;
/** /**
* shows 0-17 bits. * shows 0-17 bits.
@ -267,7 +267,7 @@ static inline unsigned int show_bits(GetBitContext *s, int n){
return tmp; return tmp;
} }
unsigned int show_bits_long(GetBitContext *s, int n); unsigned int show_bits_long(GetBitContext *s, int n) ICODE_ATTR;
static inline void skip_bits(GetBitContext *s, int n){ static inline void skip_bits(GetBitContext *s, int n){
//Note gcc seems to optimize this to s->index+=n for the ALT_READER :)) //Note gcc seems to optimize this to s->index+=n for the ALT_READER :))
@ -328,6 +328,6 @@ static inline void init_get_bits(GetBitContext *s,
} }
} }
void align_get_bits(GetBitContext *s); void align_get_bits(GetBitContext *s) ICODE_ATTR;
#endif /* BITSTREAM_H */ #endif /* BITSTREAM_H */

View file

@ -23,7 +23,7 @@
All LPC filtering up to order 8 is done in specially optimised unrolled All LPC filtering up to order 8 is done in specially optimised unrolled
loops, while every order above this is handled by a slower default routine. loops, while every order above this is handled by a slower default routine.
*/ */
.text .section .icode,"ax",@progbits
.global lpc_decode_emac .global lpc_decode_emac
.align 2 .align 2
lpc_decode_emac: lpc_decode_emac:

View file

@ -111,6 +111,7 @@ static const uint8_t table_crc8[256] ICONST_ATTR = {
0xe6, 0xe1, 0xe8, 0xef, 0xfa, 0xfd, 0xf4, 0xf3 0xe6, 0xe1, 0xe8, 0xef, 0xfa, 0xfd, 0xf4, 0xf3
}; };
static int64_t get_utf8(GetBitContext *gb) ICODE_ATTR;
static int64_t get_utf8(GetBitContext *gb) static int64_t get_utf8(GetBitContext *gb)
{ {
uint64_t val; uint64_t val;
@ -135,7 +136,9 @@ static int64_t get_utf8(GetBitContext *gb)
return val; return val;
} }
static int get_crc8(const uint8_t *buf, int count){ static int get_crc8(const uint8_t *buf, int count) ICODE_ATTR;
static int get_crc8(const uint8_t *buf, int count)
{
int crc=0; int crc=0;
int i; int i;
@ -146,6 +149,7 @@ static int get_crc8(const uint8_t *buf, int count){
return crc; 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) static int decode_residuals(FLACContext *s, int32_t* decoded, int pred_order)
{ {
int i, tmp, partition, method_type, rice_order; int i, tmp, partition, method_type, rice_order;
@ -185,6 +189,7 @@ static int decode_residuals(FLACContext *s, int32_t* decoded, int pred_order)
return 0; 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) static int decode_subframe_fixed(FLACContext *s, int32_t* decoded, int pred_order)
{ {
int i; int i;
@ -231,6 +236,7 @@ static int decode_subframe_fixed(FLACContext *s, int32_t* decoded, int pred_orde
return 0; 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) static int decode_subframe_lpc(FLACContext *s, int32_t* decoded, int pred_order)
{ {
int sum, i, j; int sum, i, j;
@ -377,6 +383,10 @@ static inline int decode_subframe(FLACContext *s, int channel, int32_t* decoded)
return 0; return 0;
} }
static int decode_frame(FLACContext *s,
int32_t* decoded0,
int32_t* decoded1,
void (*yield)(void)) ICODE_ATTR;
static int decode_frame(FLACContext *s, static int decode_frame(FLACContext *s,
int32_t* decoded0, int32_t* decoded0,
int32_t* decoded1, int32_t* decoded1,

View file

@ -41,6 +41,6 @@ int flac_decode_frame(FLACContext *s,
int32_t* decoded0, int32_t* decoded0,
int32_t* decoded1, int32_t* decoded1,
uint8_t *buf, int buf_size, uint8_t *buf, int buf_size,
void (*yield)(void)); void (*yield)(void)) ICODE_ATTR;
#endif #endif