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_vrc6_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_vrc6_apu.h')
-rw-r--r-- | apps/codecs/libgme/nes_vrc6_apu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libgme/nes_vrc6_apu.h b/apps/codecs/libgme/nes_vrc6_apu.h index 39ed006100..8f3cbf4629 100644 --- a/apps/codecs/libgme/nes_vrc6_apu.h +++ b/apps/codecs/libgme/nes_vrc6_apu.h | |||
@@ -39,12 +39,12 @@ struct Nes_Vrc6_Apu { | |||
39 | void Vrc6_init( struct Nes_Vrc6_Apu* this ); | 39 | void Vrc6_init( struct Nes_Vrc6_Apu* this ); |
40 | void Vrc6_reset( struct Nes_Vrc6_Apu* this ); | 40 | void Vrc6_reset( struct Nes_Vrc6_Apu* this ); |
41 | void Vrc6_output( struct Nes_Vrc6_Apu* this, struct Blip_Buffer* ); | 41 | void Vrc6_output( struct Nes_Vrc6_Apu* this, struct Blip_Buffer* ); |
42 | void Vrc6_end_frame( struct Nes_Vrc6_Apu* this, blip_time_t ) ICODE_ATTR; | 42 | void Vrc6_end_frame( struct Nes_Vrc6_Apu* this, blip_time_t ); |
43 | 43 | ||
44 | // Oscillator 0 write-only registers are at $9000-$9002 | 44 | // Oscillator 0 write-only registers are at $9000-$9002 |
45 | // Oscillator 1 write-only registers are at $A000-$A002 | 45 | // Oscillator 1 write-only registers are at $A000-$A002 |
46 | // Oscillator 2 write-only registers are at $B000-$B002 | 46 | // Oscillator 2 write-only registers are at $B000-$B002 |
47 | void Vrc6_write_osc( struct Nes_Vrc6_Apu* this, blip_time_t, int osc, int reg, int data ) ICODE_ATTR; | 47 | void Vrc6_write_osc( struct Nes_Vrc6_Apu* this, blip_time_t, int osc, int reg, int data ); |
48 | 48 | ||
49 | static inline void Vrc6_osc_output( struct Nes_Vrc6_Apu* this, int i, struct Blip_Buffer* buf ) | 49 | static inline void Vrc6_osc_output( struct Nes_Vrc6_Apu* this, int i, struct Blip_Buffer* buf ) |
50 | { | 50 | { |