summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-02-17 11:19:14 +0000
committerJens Arnold <amiconn@rockbox.org>2007-02-17 11:19:14 +0000
commit471d881979e0027737a435fd03efea493ea696f3 (patch)
tree60b312cb9b4ac4b97e40b9343cab503b825e8fbc /apps
parent5dd08e17e9b632f48234cef7c6e360c6666b51e0 (diff)
downloadrockbox-471d881979e0027737a435fd03efea493ea696f3.tar.gz
rockbox-471d881979e0027737a435fd03efea493ea696f3.tar.bz2
rockbox-471d881979e0027737a435fd03efea493ea696f3.zip
ARM targets: Making a few functions non-static allows us to get rid of -ffunction-sections, significantly decreasing binary size and making things run a bit faster because static functions are no longer long_call.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12349 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/aiff_enc.c14
-rw-r--r--apps/codecs/mp3_enc.c14
-rw-r--r--apps/codecs/wav_enc.c9
-rw-r--r--apps/codecs/wavpack_enc.c9
4 files changed, 26 insertions, 20 deletions
diff --git a/apps/codecs/aiff_enc.c b/apps/codecs/aiff_enc.c
index 5f993084c7..02d159e52f 100644
--- a/apps/codecs/aiff_enc.c
+++ b/apps/codecs/aiff_enc.c
@@ -75,8 +75,9 @@ static uint32_t enc_size;
static int32_t err IBSS_ATTR;
/* convert unsigned 32 bit value to 80-bit floating point number */
-static void uint32_h_to_ieee754_extended_be(uint8_t f[10], uint32_t l) ICODE_ATTR;
-static void uint32_h_to_ieee754_extended_be(uint8_t f[10], uint32_t l)
+STATICIRAM void uint32_h_to_ieee754_extended_be(uint8_t f[10], uint32_t l)
+ ICODE_ATTR;
+STATICIRAM void uint32_h_to_ieee754_extended_be(uint8_t f[10], uint32_t l)
{
int32_t exp;
@@ -192,8 +193,9 @@ static bool on_end_file(struct enc_file_event_data *data)
return true;
} /* on_end_file */
-static void enc_events_callback(enum enc_events event, void *data) ICODE_ATTR;
-static void enc_events_callback(enum enc_events event, void *data)
+STATICIRAM void enc_events_callback(enum enc_events event, void *data)
+ ICODE_ATTR;
+STATICIRAM void enc_events_callback(enum enc_events event, void *data)
{
if (event == ENC_WRITE_CHUNK)
{
@@ -219,8 +221,8 @@ static void enc_events_callback(enum enc_events event, void *data)
} /* enc_events_callback */
/* convert native pcm samples to aiff format samples */
-static void chunk_to_aiff_format(uint32_t *src, uint32_t *dst) ICODE_ATTR;
-static void chunk_to_aiff_format(uint32_t *src, uint32_t *dst)
+STATICIRAM void chunk_to_aiff_format(uint32_t *src, uint32_t *dst) ICODE_ATTR;
+STATICIRAM void chunk_to_aiff_format(uint32_t *src, uint32_t *dst)
{
if (num_channels == 1)
{
diff --git a/apps/codecs/mp3_enc.c b/apps/codecs/mp3_enc.c
index 70b327aef2..81ea47e56b 100644
--- a/apps/codecs/mp3_enc.c
+++ b/apps/codecs/mp3_enc.c
@@ -2044,8 +2044,8 @@ bool init_mp3_encoder_engine(int sample_rate,
return true;
}
-static void to_mono_mm(void) ICODE_ATTR;
-static void to_mono_mm(void)
+STATICIRAM void to_mono_mm(void) ICODE_ATTR;
+STATICIRAM void to_mono_mm(void)
{
/* |llllllllllllllll|rrrrrrrrrrrrrrrr| =>
* |mmmmmmmmmmmmmmmm|mmmmmmmmmmmmmmmm|
@@ -2100,8 +2100,9 @@ static inline void byte_swap_frame32(uint32_t *dst, uint32_t *src,
} /* byte_swap_frame32 */
#endif /* ROCKBOX_LITTLE_ENDIAN */
-static void encode_frame(char *buffer, struct enc_chunk_hdr *chunk) ICODE_ATTR;
-static void encode_frame(char *buffer, struct enc_chunk_hdr *chunk)
+STATICIRAM void encode_frame(char *buffer, struct enc_chunk_hdr *chunk)
+ ICODE_ATTR;
+STATICIRAM void encode_frame(char *buffer, struct enc_chunk_hdr *chunk)
{
int gr, gr_cnt;
int max, min;
@@ -2382,8 +2383,9 @@ static void on_rec_new_stream(struct enc_buffer_event_data *data)
}
} /* on_rec_new_stream */
-static void enc_events_callback(enum enc_events event, void *data) ICODE_ATTR;
-static void enc_events_callback(enum enc_events event, void *data)
+STATICIRAM void enc_events_callback(enum enc_events event, void *data)
+ ICODE_ATTR;
+STATICIRAM void enc_events_callback(enum enc_events event, void *data)
{
if (event == ENC_WRITE_CHUNK)
{
diff --git a/apps/codecs/wav_enc.c b/apps/codecs/wav_enc.c
index dddca3f5c2..622ff3a6d1 100644
--- a/apps/codecs/wav_enc.c
+++ b/apps/codecs/wav_enc.c
@@ -181,8 +181,9 @@ static bool on_end_file(struct enc_file_event_data *data)
return true;
} /* on_end_file */
-static void enc_events_callback(enum enc_events event, void *data) ICODE_ATTR;
-static void enc_events_callback(enum enc_events event, void *data)
+STATICIRAM void enc_events_callback(enum enc_events event, void *data)
+ ICODE_ATTR;
+STATICIRAM void enc_events_callback(enum enc_events event, void *data)
{
if (event == ENC_WRITE_CHUNK)
{
@@ -208,8 +209,8 @@ static void enc_events_callback(enum enc_events event, void *data)
} /* enc_events_callback */
/* convert native pcm samples to wav format samples */
-static void chunk_to_wav_format(uint32_t *src, uint32_t *dst) ICODE_ATTR;
-static void chunk_to_wav_format(uint32_t *src, uint32_t *dst)
+STATICIRAM void chunk_to_wav_format(uint32_t *src, uint32_t *dst) ICODE_ATTR;
+STATICIRAM void chunk_to_wav_format(uint32_t *src, uint32_t *dst)
{
if (num_channels == 1)
{
diff --git a/apps/codecs/wavpack_enc.c b/apps/codecs/wavpack_enc.c
index 71222597e0..547d309159 100644
--- a/apps/codecs/wavpack_enc.c
+++ b/apps/codecs/wavpack_enc.c
@@ -99,8 +99,8 @@ static const struct riff_header riff_header =
/* (*) updated during ENC_END_FILE event */
};
-static void chunk_to_int32(int32_t *src) ICODE_ATTR;
-static void chunk_to_int32(int32_t *src)
+STATICIRAM void chunk_to_int32(int32_t *src) ICODE_ATTR;
+STATICIRAM void chunk_to_int32(int32_t *src)
{
int32_t *src_end, *dst;
#ifdef USE_IRAM
@@ -306,8 +306,9 @@ static bool on_end_file(struct enc_file_event_data *data)
return true;
} /* on_end_file */
-static void enc_events_callback(enum enc_events event, void *data) ICODE_ATTR;
-static void enc_events_callback(enum enc_events event, void *data)
+STATICIRAM void enc_events_callback(enum enc_events event, void *data)
+ ICODE_ATTR;
+STATICIRAM void enc_events_callback(enum enc_events event, void *data)
{
if (event == ENC_WRITE_CHUNK)
{