diff options
author | Dan Everton <dan@iocaine.org> | 2007-07-09 11:18:10 +0000 |
---|---|---|
committer | Dan Everton <dan@iocaine.org> | 2007-07-09 11:18:10 +0000 |
commit | 07fabd1cd1f2173d93cb1b3962da7d11ca80c569 (patch) | |
tree | 2a24deacde8e70f1da71aa1a53b8f0832fa3d6f3 /apps/codecs/libspeex/lsp_tables_nb.c | |
parent | 85aa3a8d381ac980b49699d49234e4df051813e5 (diff) | |
download | rockbox-07fabd1cd1f2173d93cb1b3962da7d11ca80c569.tar.gz rockbox-07fabd1cd1f2173d93cb1b3962da7d11ca80c569.zip |
ICONST_ATTR most constant tables in Speex. Results in a 10% improvement on Coldfire (200% to 220% realtime). Almost certainly not the best use of IRAM, but it works now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13831 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/lsp_tables_nb.c')
-rw-r--r-- | apps/codecs/libspeex/lsp_tables_nb.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/codecs/libspeex/lsp_tables_nb.c b/apps/codecs/libspeex/lsp_tables_nb.c index 16f2e1b64f..e9fe9cebd5 100644 --- a/apps/codecs/libspeex/lsp_tables_nb.c +++ b/apps/codecs/libspeex/lsp_tables_nb.c | |||
@@ -29,7 +29,9 @@ | |||
29 | POSSIBILITY OF SUCH DAMAGE. | 29 | POSSIBILITY OF SUCH DAMAGE. |
30 | */ | 30 | */ |
31 | 31 | ||
32 | const signed char cdbk_nb[640]={ | 32 | #include "config-speex.h" |
33 | |||
34 | const signed char cdbk_nb[640] ICONST_ATTR = { | ||
33 | 30,19,38,34,40,32,46,43,58,43, | 35 | 30,19,38,34,40,32,46,43,58,43, |
34 | 5,-18,-25,-40,-33,-55,-52,20,34,28, | 36 | 5,-18,-25,-40,-33,-55,-52,20,34,28, |
35 | -20,-63,-97,-92,61,53,47,49,53,75, | 37 | -20,-63,-97,-92,61,53,47,49,53,75, |
@@ -95,7 +97,7 @@ const signed char cdbk_nb[640]={ | |||
95 | -6,-41,-67,6,-2,-9,19,2,85,74, | 97 | -6,-41,-67,6,-2,-9,19,2,85,74, |
96 | -22,-67,-84,-71,-50,3,11,-9,2,62}; | 98 | -22,-67,-84,-71,-50,3,11,-9,2,62}; |
97 | 99 | ||
98 | const signed char cdbk_nb_low1[320]={ | 100 | const signed char cdbk_nb_low1[320] ICONST_ATTR = { |
99 | -34,-52,-15,45,2, | 101 | -34,-52,-15,45,2, |
100 | 23,21,52,24,-33, | 102 | 23,21,52,24,-33, |
101 | -9,-1,9,-44,-41, | 103 | -9,-1,9,-44,-41, |
@@ -161,7 +163,7 @@ const signed char cdbk_nb_low1[320]={ | |||
161 | 13,20,20,-19,-22, | 163 | 13,20,20,-19,-22, |
162 | -2,-8,2,51,-51}; | 164 | -2,-8,2,51,-51}; |
163 | 165 | ||
164 | const signed char cdbk_nb_low2[320]={ | 166 | const signed char cdbk_nb_low2[320] ICONST_ATTR = { |
165 | -6,53,-21,-24,4, | 167 | -6,53,-21,-24,4, |
166 | 26,17,-4,-37,25, | 168 | 26,17,-4,-37,25, |
167 | 17,-36,-13,31,3, | 169 | 17,-36,-13,31,3, |
@@ -227,7 +229,7 @@ const signed char cdbk_nb_low2[320]={ | |||
227 | -23,-29,-16,1,-3, | 229 | -23,-29,-16,1,-3, |
228 | -8,-10,31,64,-65}; | 230 | -8,-10,31,64,-65}; |
229 | 231 | ||
230 | const signed char cdbk_nb_high1[320]={ | 232 | const signed char cdbk_nb_high1[320] ICONST_ATTR = { |
231 | -26,-8,29,21,4, | 233 | -26,-8,29,21,4, |
232 | 19,-39,33,-7,-36, | 234 | 19,-39,33,-7,-36, |
233 | 56,54,48,40,29, | 235 | 56,54,48,40,29, |
@@ -293,7 +295,7 @@ const signed char cdbk_nb_high1[320]={ | |||
293 | 29,17,8,-29,-39, | 295 | 29,17,8,-29,-39, |
294 | -69,18,15,-15,-5}; | 296 | -69,18,15,-15,-5}; |
295 | 297 | ||
296 | const signed char cdbk_nb_high2[320]={ | 298 | const signed char cdbk_nb_high2[320] ICONST_ATTR = { |
297 | 11,47,16,-9,-46, | 299 | 11,47,16,-9,-46, |
298 | -32,26,-64,34,-5, | 300 | -32,26,-64,34,-5, |
299 | 38,-7,47,20,2, | 301 | 38,-7,47,20,2, |