diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-13 16:41:14 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-13 16:41:14 +0000 |
| commit | a1145a1d040dd52b2b5d0e7fe965b6507475bbe2 (patch) | |
| tree | 988f845d688974dd7db1950243ef09cc39ed443c /apps/codecs/libgme/multi_buffer.h | |
| parent | 724a2d2514578297a7fe21dc4c17a7b51a25758d (diff) | |
| download | rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.zip rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.tar.gz rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.tar.bz2 rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.tar.xz | |
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/multi_buffer.h')
| -rw-r--r-- | apps/codecs/libgme/multi_buffer.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/codecs/libgme/multi_buffer.h b/apps/codecs/libgme/multi_buffer.h index 26f3023..cfdae4f 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 ) |