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/hes_emu.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/codecs/libgme/hes_emu.h') 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 ); // Generate 'count' samples info 'buf'. Output is in stereo. Any emulation // errors set warning string, and major errors also end track. -blargg_err_t Hes_play( struct Hes_Emu* this, long count, sample_t* buf ) ICODE_ATTR; +blargg_err_t Hes_play( struct Hes_Emu* this, long count, sample_t* buf ); // Track status/control // 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 ) // Emulation (You shouldn't touch these) -int Cpu_read( struct Hes_Emu* this, hes_addr_t ) ICODE_ATTR; -void Cpu_write( struct Hes_Emu* this, hes_addr_t, int ) ICODE_ATTR; -void Cpu_write_vdp( struct Hes_Emu* this, int addr, int data ) ICODE_ATTR; -int Cpu_done( struct Hes_Emu* this ) ICODE_ATTR; +int Cpu_read( struct Hes_Emu* this, hes_addr_t ); +void Cpu_write( struct Hes_Emu* this, hes_addr_t, int ); +void Cpu_write_vdp( struct Hes_Emu* this, int addr, int data ); +int Cpu_done( struct Hes_Emu* this ); -int Emu_cpu_read( struct Hes_Emu* this, hes_addr_t ) ICODE_ATTR; -void Emu_cpu_write( struct Hes_Emu* this, hes_addr_t, int data ) ICODE_ATTR; +int Emu_cpu_read( struct Hes_Emu* this, hes_addr_t ); +void Emu_cpu_write( struct Hes_Emu* this, hes_addr_t, int data ); static inline byte const* Emu_cpu_set_mmr( struct Hes_Emu* this, int page, int bank ) { -- cgit v1.2.3