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_oscs.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/nes_oscs.c')
-rw-r--r-- | apps/codecs/libgme/nes_oscs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libgme/nes_oscs.c b/apps/codecs/libgme/nes_oscs.c index 8682cc60e2..a790c4d8a2 100644 --- a/apps/codecs/libgme/nes_oscs.c +++ b/apps/codecs/libgme/nes_oscs.c | |||
@@ -326,7 +326,7 @@ int Dmc_count_reads( struct Nes_Dmc* this, nes_time_t time, nes_time_t* last_rea | |||
326 | return count; | 326 | return count; |
327 | } | 327 | } |
328 | 328 | ||
329 | static short const dmc_period_table [2] [16] ICONST_ATTR = { | 329 | static short const dmc_period_table [2] [16] = { |
330 | {428, 380, 340, 320, 286, 254, 226, 214, // NTSC | 330 | {428, 380, 340, 320, 286, 254, 226, 214, // NTSC |
331 | 190, 160, 142, 128, 106, 84, 72, 54}, | 331 | 190, 160, 142, 128, 106, 84, 72, 54}, |
332 | 332 | ||
@@ -340,7 +340,7 @@ inline void Dmc_reload_sample( struct Nes_Dmc* this ) | |||
340 | this->osc.length_counter = this->osc.regs [3] * 0x10 + 1; | 340 | this->osc.length_counter = this->osc.regs [3] * 0x10 + 1; |
341 | } | 341 | } |
342 | 342 | ||
343 | static byte const dac_table [128] ICONST_ATTR = | 343 | static byte const dac_table [128] = |
344 | { | 344 | { |
345 | 0, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,13,14, | 345 | 0, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,13,14, |
346 | 15,15,16,17,18,19,20,20,21,22,23,24,24,25,26,27, | 346 | 15,15,16,17,18,19,20,20,21,22,23,24,24,25,26,27, |
@@ -479,7 +479,7 @@ void Dmc_run( struct Nes_Dmc* this, nes_time_t time, nes_time_t end_time ) | |||
479 | 479 | ||
480 | // Nes_Noise | 480 | // Nes_Noise |
481 | 481 | ||
482 | static short const noise_period_table [16] ICONST_ATTR = { | 482 | static short const noise_period_table [16] = { |
483 | 0x004, 0x008, 0x010, 0x020, 0x040, 0x060, 0x080, 0x0A0, | 483 | 0x004, 0x008, 0x010, 0x020, 0x040, 0x060, 0x080, 0x0A0, |
484 | 0x0CA, 0x0FE, 0x17C, 0x1FC, 0x2FA, 0x3F8, 0x7F2, 0xFE4 | 484 | 0x0CA, 0x0FE, 0x17C, 0x1FC, 0x2FA, 0x3F8, 0x7F2, 0xFE4 |
485 | }; | 485 | }; |