From a1145a1d040dd52b2b5d0e7fe965b6507475bbe2 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sat, 13 Aug 2011 16:41:14 +0000 Subject: Remove all IRAM attributes from libGME to be able to restart the IRAM optimization on a clean code base. As first step move the sample buffers to IRAM which results in a 1-5% speedup for all codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30284 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libgme/nsf_emu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/codecs/libgme/nsf_emu.c') diff --git a/apps/codecs/libgme/nsf_emu.c b/apps/codecs/libgme/nsf_emu.c index 79a15e21f2..d4d5753460 100644 --- a/apps/codecs/libgme/nsf_emu.c +++ b/apps/codecs/libgme/nsf_emu.c @@ -18,7 +18,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "blargg_source.h" -const char gme_wrong_file_type [] ICONST_ATTR = "Wrong file type for this emulator"; +const char gme_wrong_file_type [] = "Wrong file type for this emulator"; long const clock_divisor = 12; int const stereo = 2; // number of channels for stereo @@ -859,7 +859,7 @@ blargg_err_t Track_seek( struct Nsf_Emu* this, long msec ) return Track_skip( this, time - this->out_time ); } -blargg_err_t skip_( struct Nsf_Emu* this, long count ) ICODE_ATTR; +blargg_err_t skip_( struct Nsf_Emu* this, long count ); blargg_err_t Track_skip( struct Nsf_Emu* this, long count ) { require( this->current_track >= 0 ); // start_track() must have been called already @@ -890,7 +890,7 @@ blargg_err_t Track_skip( struct Nsf_Emu* this, long count ) return 0; } -blargg_err_t play_( struct Nsf_Emu* this, long count, sample_t* out ) ICODE_ATTR; +blargg_err_t play_( struct Nsf_Emu* this, long count, sample_t* out ); blargg_err_t skip_( struct Nsf_Emu* this, long count ) { // for long skip, mute sound @@ -960,7 +960,7 @@ static void handle_fade( struct Nsf_Emu* this, long out_count, sample_t* out ) // Silence detection -void emu_play( struct Nsf_Emu* this, long count, sample_t* out ) ICODE_ATTR; +void emu_play( struct Nsf_Emu* this, long count, sample_t* out ); void emu_play( struct Nsf_Emu* this, long count, sample_t* out ) { check( current_track_ >= 0 ); -- cgit v1.2.3