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/multi_buffer.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/codecs/libgme/multi_buffer.h') diff --git a/apps/codecs/libgme/multi_buffer.h b/apps/codecs/libgme/multi_buffer.h index 26f302380c..cfdae4f077 100644 --- a/apps/codecs/libgme/multi_buffer.h +++ b/apps/codecs/libgme/multi_buffer.h @@ -38,18 +38,18 @@ void Buffer_clock_rate( struct Stereo_Buffer* this, long ); void Buffer_bass_freq( struct Stereo_Buffer* this, int ); void Buffer_clear( struct Stereo_Buffer* this ); struct channel_t Buffer_channel( struct Stereo_Buffer* this ); -void Buffer_end_frame( struct Stereo_Buffer* this, blip_time_t ) ICODE_ATTR; +void Buffer_end_frame( struct Stereo_Buffer* this, blip_time_t ); -long Buffer_read_samples( struct Stereo_Buffer* this, blip_sample_t*, long ) ICODE_ATTR; +long Buffer_read_samples( struct Stereo_Buffer* this, blip_sample_t*, long ); // Count of changes to channel configuration. Incremented whenever // a change is made to any of the Blip_Buffers for any channel. -unsigned Buffer_channels_changed_count( struct Stereo_Buffer* this ) ICODE_ATTR; -void Buffer_channels_changed( struct Stereo_Buffer* this ) ICODE_ATTR; +unsigned Buffer_channels_changed_count( struct Stereo_Buffer* this ); +void Buffer_channels_changed( struct Stereo_Buffer* this ); -void Buffer_mix_stereo_no_center( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ) ICODE_ATTR; -void Buffer_mix_stereo( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ) ICODE_ATTR; -void Buffer_mix_mono( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ) ICODE_ATTR; +void Buffer_mix_stereo_no_center( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ); +void Buffer_mix_stereo( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ); +void Buffer_mix_mono( struct Stereo_Buffer* this, blip_sample_t*, blargg_long ); // Number of samples per output frame (1 = mono, 2 = stereo) static inline int Buffer_samples_per_frame( struct Stereo_Buffer* this ) -- cgit v1.2.3