summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/sgc_emu.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-13 16:41:14 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-13 16:41:14 +0000
commita1145a1d040dd52b2b5d0e7fe965b6507475bbe2 (patch)
tree988f845d688974dd7db1950243ef09cc39ed443c /apps/codecs/libgme/sgc_emu.c
parent724a2d2514578297a7fe21dc4c17a7b51a25758d (diff)
downloadrockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.tar.gz
rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.zip
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
Diffstat (limited to 'apps/codecs/libgme/sgc_emu.c')
-rw-r--r--apps/codecs/libgme/sgc_emu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libgme/sgc_emu.c b/apps/codecs/libgme/sgc_emu.c
index a25bdbc070..3c3586611c 100644
--- a/apps/codecs/libgme/sgc_emu.c
+++ b/apps/codecs/libgme/sgc_emu.c
@@ -306,7 +306,7 @@ void Sound_set_tempo( struct Sgc_Emu* this, int t )
306 this->play_period = (int) ((clock_rate( this ) * FP_ONE_TEMPO) / (this->header.rate ? 50 : 60) / t); 306 this->play_period = (int) ((clock_rate( this ) * FP_ONE_TEMPO) / (this->header.rate ? 50 : 60) / t);
307} 307}
308 308
309void fill_buf( struct Sgc_Emu* this ) ICODE_ATTR; 309void fill_buf( struct Sgc_Emu* this );
310blargg_err_t Sgc_start_track( struct Sgc_Emu* this, int track ) 310blargg_err_t Sgc_start_track( struct Sgc_Emu* this, int track )
311{ 311{
312 clear_track_vars( this ); 312 clear_track_vars( this );
@@ -430,7 +430,7 @@ blargg_err_t Track_seek( struct Sgc_Emu* this, long msec )
430 return Track_skip( this, time - this->out_time ); 430 return Track_skip( this, time - this->out_time );
431} 431}
432 432
433blargg_err_t skip_( struct Sgc_Emu* this, long count ) ICODE_ATTR; 433blargg_err_t skip_( struct Sgc_Emu* this, long count );
434blargg_err_t Track_skip( struct Sgc_Emu* this, long count ) 434blargg_err_t Track_skip( struct Sgc_Emu* this, long count )
435{ 435{
436 require( this->current_track >= 0 ); // start_track() must have been called already 436 require( this->current_track >= 0 ); // start_track() must have been called already
@@ -463,7 +463,7 @@ blargg_err_t Track_skip( struct Sgc_Emu* this, long count )
463 return 0; 463 return 0;
464} 464}
465 465
466blargg_err_t play_( struct Sgc_Emu* this, long count, sample_t* out ) ICODE_ATTR; 466blargg_err_t play_( struct Sgc_Emu* this, long count, sample_t* out );
467blargg_err_t skip_( struct Sgc_Emu* this, long count ) 467blargg_err_t skip_( struct Sgc_Emu* this, long count )
468{ 468{
469 // for long skip, mute sound 469 // for long skip, mute sound