summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/nsf_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/nsf_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/nsf_emu.c')
-rw-r--r--apps/codecs/libgme/nsf_emu.c8
1 files changed, 4 insertions, 4 deletions
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 */
18 18
19#include "blargg_source.h" 19#include "blargg_source.h"
20 20
21const char gme_wrong_file_type [] ICONST_ATTR = "Wrong file type for this emulator"; 21const char gme_wrong_file_type [] = "Wrong file type for this emulator";
22long const clock_divisor = 12; 22long const clock_divisor = 12;
23 23
24int const stereo = 2; // number of channels for stereo 24int const stereo = 2; // number of channels for stereo
@@ -859,7 +859,7 @@ blargg_err_t Track_seek( struct Nsf_Emu* this, long msec )
859 return Track_skip( this, time - this->out_time ); 859 return Track_skip( this, time - this->out_time );
860} 860}
861 861
862blargg_err_t skip_( struct Nsf_Emu* this, long count ) ICODE_ATTR; 862blargg_err_t skip_( struct Nsf_Emu* this, long count );
863blargg_err_t Track_skip( struct Nsf_Emu* this, long count ) 863blargg_err_t Track_skip( struct Nsf_Emu* this, long count )
864{ 864{
865 require( this->current_track >= 0 ); // start_track() must have been called already 865 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 )
890 return 0; 890 return 0;
891} 891}
892 892
893blargg_err_t play_( struct Nsf_Emu* this, long count, sample_t* out ) ICODE_ATTR; 893blargg_err_t play_( struct Nsf_Emu* this, long count, sample_t* out );
894blargg_err_t skip_( struct Nsf_Emu* this, long count ) 894blargg_err_t skip_( struct Nsf_Emu* this, long count )
895{ 895{
896 // for long skip, mute sound 896 // for long skip, mute sound
@@ -960,7 +960,7 @@ static void handle_fade( struct Nsf_Emu* this, long out_count, sample_t* out )
960 960
961// Silence detection 961// Silence detection
962 962
963void emu_play( struct Nsf_Emu* this, long count, sample_t* out ) ICODE_ATTR; 963void emu_play( struct Nsf_Emu* this, long count, sample_t* out );
964void emu_play( struct Nsf_Emu* this, long count, sample_t* out ) 964void emu_play( struct Nsf_Emu* this, long count, sample_t* out )
965{ 965{
966 check( current_track_ >= 0 ); 966 check( current_track_ >= 0 );