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/kss_emu.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/codecs/libgme/kss_emu.h') diff --git a/apps/codecs/libgme/kss_emu.h b/apps/codecs/libgme/kss_emu.h index 646b18ea35..43df964fcc 100644 --- a/apps/codecs/libgme/kss_emu.h +++ b/apps/codecs/libgme/kss_emu.h @@ -155,7 +155,7 @@ blargg_err_t Kss_start_track( struct Kss_Emu* this, int track ); // Generate 'count' samples info 'buf'. Output is in stereo. Any emulation // errors set warning string, and major errors also end track. -blargg_err_t Kss_play( struct Kss_Emu* this, long count, sample_t* buf ) ICODE_ATTR; +blargg_err_t Kss_play( struct Kss_Emu* this, long count, sample_t* buf ); // Track status/control @@ -210,13 +210,13 @@ static inline void Sound_set_gain( struct Kss_Emu* this, int g ) } // Emulation (You shouldn't touch these -void cpu_write( struct Kss_Emu* this, kss_addr_t, int ) ICODE_ATTR; -int cpu_in( struct Kss_Emu* this, kss_time_t, kss_addr_t ) ICODE_ATTR; -void cpu_out( struct Kss_Emu* this, kss_time_t, kss_addr_t, int ) ICODE_ATTR; +void cpu_write( struct Kss_Emu* this, kss_addr_t, int ); +int cpu_in( struct Kss_Emu* this, kss_time_t, kss_addr_t ); +void cpu_out( struct Kss_Emu* this, kss_time_t, kss_addr_t, int ); -void cpu_write_( struct Kss_Emu* this, kss_addr_t addr, int data ) ICODE_ATTR; -bool run_cpu( struct Kss_Emu* this, kss_time_t end ) ICODE_ATTR; -void jsr( struct Kss_Emu* this, byte const addr [] ) ICODE_ATTR; +void cpu_write_( struct Kss_Emu* this, kss_addr_t addr, int data ); +bool run_cpu( struct Kss_Emu* this, kss_time_t end ); +void jsr( struct Kss_Emu* this, byte const addr [] ); static inline int sms_psg_enabled( struct Kss_Emu* this ) { return this->chip_flags & sms_psg_flag; } static inline int sms_fm_enabled( struct Kss_Emu* this ) { return this->chip_flags & sms_fm_flag; } -- cgit v1.2.3