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/nes_fds_apu.h | |
parent | 724a2d2514578297a7fe21dc4c17a7b51a25758d (diff) | |
download | rockbox-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/nes_fds_apu.h')
-rw-r--r-- | apps/codecs/libgme/nes_fds_apu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libgme/nes_fds_apu.h b/apps/codecs/libgme/nes_fds_apu.h index 951aff0ee9..8dac3b721a 100644 --- a/apps/codecs/libgme/nes_fds_apu.h +++ b/apps/codecs/libgme/nes_fds_apu.h | |||
@@ -68,7 +68,7 @@ static inline void Fds_set_output( struct Nes_Fds_Apu* this, int i, struct Blip_ | |||
68 | this->output_ = b; | 68 | this->output_ = b; |
69 | } | 69 | } |
70 | 70 | ||
71 | void Fds_run_until( struct Nes_Fds_Apu* this, blip_time_t ) ICODE_ATTR; | 71 | void Fds_run_until( struct Nes_Fds_Apu* this, blip_time_t ); |
72 | static inline void Fds_end_frame( struct Nes_Fds_Apu* this, blip_time_t end_time ) | 72 | static inline void Fds_end_frame( struct Nes_Fds_Apu* this, blip_time_t end_time ) |
73 | { | 73 | { |
74 | if ( end_time > this->last_time ) | 74 | if ( end_time > this->last_time ) |
@@ -77,7 +77,7 @@ static inline void Fds_end_frame( struct Nes_Fds_Apu* this, blip_time_t end_time | |||
77 | assert( this->last_time >= 0 ); | 77 | assert( this->last_time >= 0 ); |
78 | } | 78 | } |
79 | 79 | ||
80 | void Fds_write_( struct Nes_Fds_Apu* this, unsigned addr, int data ) ICODE_ATTR; | 80 | void Fds_write_( struct Nes_Fds_Apu* this, unsigned addr, int data ); |
81 | static inline void Fds_write( struct Nes_Fds_Apu* this, blip_time_t time, unsigned addr, int data ) | 81 | static inline void Fds_write( struct Nes_Fds_Apu* this, blip_time_t time, unsigned addr, int data ) |
82 | { | 82 | { |
83 | Fds_run_until( this, time ); | 83 | Fds_run_until( this, time ); |