summaryrefslogtreecommitdiffstats
path: root/apps/codecs/mp3_enc.c
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/codecs/mp3_enc.c
parent5dd08e17e9b632f48234cef7c6e360c6666b51e0 (diff)
downloadrockbox-471d881979e0027737a435fd03efea493ea696f3.tar.gz
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/codecs/mp3_enc.c')
-rw-r--r--apps/codecs/mp3_enc.c14
1 files changed, 8 insertions, 6 deletions
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)
{