summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/nes_namco_apu.h
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/nes_namco_apu.h
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/nes_namco_apu.h')
-rw-r--r--apps/codecs/libgme/nes_namco_apu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libgme/nes_namco_apu.h b/apps/codecs/libgme/nes_namco_apu.h
index 5f9f1c84a0..c47eacc4bb 100644
--- a/apps/codecs/libgme/nes_namco_apu.h
+++ b/apps/codecs/libgme/nes_namco_apu.h
@@ -37,7 +37,7 @@ void Namco_init( struct Nes_Namco_Apu* this );
37void Namco_output( struct Nes_Namco_Apu* this, struct Blip_Buffer* ); 37void Namco_output( struct Nes_Namco_Apu* this, struct Blip_Buffer* );
38 38
39void Namco_reset( struct Nes_Namco_Apu* this ); 39void Namco_reset( struct Nes_Namco_Apu* this );
40void Namco_end_frame( struct Nes_Namco_Apu* this, blip_time_t ) ICODE_ATTR; 40void Namco_end_frame( struct Nes_Namco_Apu* this, blip_time_t );
41 41
42static inline uint8_t* namco_access( struct Nes_Namco_Apu* this ) 42static inline uint8_t* namco_access( struct Nes_Namco_Apu* this )
43{ 43{
@@ -61,7 +61,7 @@ static inline void Namco_osc_output( struct Nes_Namco_Apu* this, int i, struct B
61} 61}
62 62
63// Read/write data register is at 0x4800 63// Read/write data register is at 0x4800
64void Namco_run_until( struct Nes_Namco_Apu* this, blip_time_t ) ICODE_ATTR; 64void Namco_run_until( struct Nes_Namco_Apu* this, blip_time_t );
65static inline void Namco_write_data( struct Nes_Namco_Apu* this, blip_time_t time, int data ) 65static inline void Namco_write_data( struct Nes_Namco_Apu* this, blip_time_t time, int data )
66{ 66{
67 Namco_run_until( this, time ); 67 Namco_run_until( this, time );