summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/hes_emu.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/hes_emu.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/hes_emu.h')
-rw-r--r--apps/codecs/libgme/hes_emu.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libgme/hes_emu.h b/apps/codecs/libgme/hes_emu.h
index be9264455b..0dcd29a9c6 100644
--- a/apps/codecs/libgme/hes_emu.h
+++ b/apps/codecs/libgme/hes_emu.h
@@ -136,7 +136,7 @@ blargg_err_t Hes_start_track( struct Hes_Emu* this, int );
136 136
137// Generate 'count' samples info 'buf'. Output is in stereo. Any emulation 137// Generate 'count' samples info 'buf'. Output is in stereo. Any emulation
138// errors set warning string, and major errors also end track. 138// errors set warning string, and major errors also end track.
139blargg_err_t Hes_play( struct Hes_Emu* this, long count, sample_t* buf ) ICODE_ATTR; 139blargg_err_t Hes_play( struct Hes_Emu* this, long count, sample_t* buf );
140 140
141// Track status/control 141// Track status/control
142// Number of milliseconds (1000 msec = 1 second) played since ning of track 142// Number of milliseconds (1000 msec = 1 second) played since ning of track
@@ -188,13 +188,13 @@ static inline void Sound_set_gain( struct Hes_Emu* this, int g )
188 188
189// Emulation (You shouldn't touch these) 189// Emulation (You shouldn't touch these)
190 190
191int Cpu_read( struct Hes_Emu* this, hes_addr_t ) ICODE_ATTR; 191int Cpu_read( struct Hes_Emu* this, hes_addr_t );
192void Cpu_write( struct Hes_Emu* this, hes_addr_t, int ) ICODE_ATTR; 192void Cpu_write( struct Hes_Emu* this, hes_addr_t, int );
193void Cpu_write_vdp( struct Hes_Emu* this, int addr, int data ) ICODE_ATTR; 193void Cpu_write_vdp( struct Hes_Emu* this, int addr, int data );
194int Cpu_done( struct Hes_Emu* this ) ICODE_ATTR; 194int Cpu_done( struct Hes_Emu* this );
195 195
196int Emu_cpu_read( struct Hes_Emu* this, hes_addr_t ) ICODE_ATTR; 196int Emu_cpu_read( struct Hes_Emu* this, hes_addr_t );
197void Emu_cpu_write( struct Hes_Emu* this, hes_addr_t, int data ) ICODE_ATTR; 197void Emu_cpu_write( struct Hes_Emu* this, hes_addr_t, int data );
198 198
199static inline byte const* Emu_cpu_set_mmr( struct Hes_Emu* this, int page, int bank ) 199static inline byte const* Emu_cpu_set_mmr( struct Hes_Emu* this, int page, int bank )
200{ 200{