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/gb_apu.c | |
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/gb_apu.c')
-rw-r--r-- | apps/codecs/libgme/gb_apu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libgme/gb_apu.c b/apps/codecs/libgme/gb_apu.c index 44dd6c8e6c..e8bf3afcf5 100644 --- a/apps/codecs/libgme/gb_apu.c +++ b/apps/codecs/libgme/gb_apu.c | |||
@@ -136,7 +136,7 @@ void Apu_reset( struct Gb_Apu* this, enum gb_mode_t mode, bool agb_wave ) | |||
136 | reset_lengths( this ); | 136 | reset_lengths( this ); |
137 | 137 | ||
138 | // Load initial wave RAM | 138 | // Load initial wave RAM |
139 | static byte const initial_wave [2] [16] ICONST_ATTR = { | 139 | static byte const initial_wave [2] [16] = { |
140 | {0x84,0x40,0x43,0xAA,0x2D,0x78,0x92,0x3C,0x60,0x59,0x59,0xB0,0x34,0xB8,0x2E,0xDA}, | 140 | {0x84,0x40,0x43,0xAA,0x2D,0x78,0x92,0x3C,0x60,0x59,0x59,0xB0,0x34,0xB8,0x2E,0xDA}, |
141 | {0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF}, | 141 | {0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF,0x00,0xFF}, |
142 | }; | 142 | }; |
@@ -383,7 +383,7 @@ int Apu_read_register( struct Gb_Apu* this, blip_time_t time, int addr ) | |||
383 | return Wave_read( &this->wave, addr ); | 383 | return Wave_read( &this->wave, addr ); |
384 | 384 | ||
385 | // Value read back has some bits always set | 385 | // Value read back has some bits always set |
386 | static byte const masks [] ICONST_ATTR = { | 386 | static byte const masks [] = { |
387 | 0x80,0x3F,0x00,0xFF,0xBF, | 387 | 0x80,0x3F,0x00,0xFF,0xBF, |
388 | 0xFF,0x3F,0x00,0xFF,0xBF, | 388 | 0xFF,0x3F,0x00,0xFF,0xBF, |
389 | 0x7F,0xFF,0x9F,0xFF,0xBF, | 389 | 0x7F,0xFF,0x9F,0xFF,0xBF, |