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/hes_apu_adpcm.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/hes_apu_adpcm.c')
-rw-r--r-- | apps/codecs/libgme/hes_apu_adpcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libgme/hes_apu_adpcm.c b/apps/codecs/libgme/hes_apu_adpcm.c index 66512dc702..69ac7120d0 100644 --- a/apps/codecs/libgme/hes_apu_adpcm.c +++ b/apps/codecs/libgme/hes_apu_adpcm.c | |||
@@ -55,7 +55,7 @@ static short stepsize[49] = { | |||
55 | 876, 963,1060,1166,1282,1411,1552 | 55 | 876, 963,1060,1166,1282,1411,1552 |
56 | }; | 56 | }; |
57 | 57 | ||
58 | static int Adpcm_decode( struct Hes_Apu_Adpcm* this,int code ) ICODE_ATTR; | 58 | static int Adpcm_decode( struct Hes_Apu_Adpcm* this,int code ); |
59 | static int Adpcm_decode( struct Hes_Apu_Adpcm* this,int code ) | 59 | static int Adpcm_decode( struct Hes_Apu_Adpcm* this,int code ) |
60 | { | 60 | { |
61 | struct State* state = &this->state; | 61 | struct State* state = &this->state; |
@@ -87,7 +87,7 @@ static int Adpcm_decode( struct Hes_Apu_Adpcm* this,int code ) | |||
87 | state->ad_sample = 2047; | 87 | state->ad_sample = 2047; |
88 | } | 88 | } |
89 | 89 | ||
90 | static int const steps [8] ICONST_ATTR = { | 90 | static int const steps [8] = { |
91 | -1, -1, -1, -1, 2, 4, 6, 8 | 91 | -1, -1, -1, -1, 2, 4, 6, 8 |
92 | }; | 92 | }; |
93 | state->ad_ref_index += steps [c]; | 93 | state->ad_ref_index += steps [c]; |
@@ -99,7 +99,7 @@ static int Adpcm_decode( struct Hes_Apu_Adpcm* this,int code ) | |||
99 | return state->ad_sample; | 99 | return state->ad_sample; |
100 | } | 100 | } |
101 | 101 | ||
102 | static void Adpcm_run_until( struct Hes_Apu_Adpcm* this, blip_time_t end_time ) ICODE_ATTR; | 102 | static void Adpcm_run_until( struct Hes_Apu_Adpcm* this, blip_time_t end_time ); |
103 | static void Adpcm_run_until( struct Hes_Apu_Adpcm* this, blip_time_t end_time ) | 103 | static void Adpcm_run_until( struct Hes_Apu_Adpcm* this, blip_time_t end_time ) |
104 | { | 104 | { |
105 | struct State* state = &this->state; | 105 | struct State* state = &this->state; |