summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/lsp_tables_nb.c
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2007-07-09 11:18:10 +0000
committerDan Everton <dan@iocaine.org>2007-07-09 11:18:10 +0000
commit07fabd1cd1f2173d93cb1b3962da7d11ca80c569 (patch)
tree2a24deacde8e70f1da71aa1a53b8f0832fa3d6f3 /apps/codecs/libspeex/lsp_tables_nb.c
parent85aa3a8d381ac980b49699d49234e4df051813e5 (diff)
downloadrockbox-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.c12
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
32const signed char cdbk_nb[640]={ 32#include "config-speex.h"
33
34const signed char cdbk_nb[640] ICONST_ATTR = {
3330,19,38,34,40,32,46,43,58,43, 3530,19,38,34,40,32,46,43,58,43,
345,-18,-25,-40,-33,-55,-52,20,34,28, 365,-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
98const signed char cdbk_nb_low1[320]={ 100const signed char cdbk_nb_low1[320] ICONST_ATTR = {
99-34,-52,-15,45,2, 101-34,-52,-15,45,2,
10023,21,52,24,-33, 10223,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]={
16113,20,20,-19,-22, 16313,20,20,-19,-22,
162-2,-8,2,51,-51}; 164-2,-8,2,51,-51};
163 165
164const signed char cdbk_nb_low2[320]={ 166const signed char cdbk_nb_low2[320] ICONST_ATTR = {
165-6,53,-21,-24,4, 167-6,53,-21,-24,4,
16626,17,-4,-37,25, 16826,17,-4,-37,25,
16717,-36,-13,31,3, 16917,-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
230const signed char cdbk_nb_high1[320]={ 232const signed char cdbk_nb_high1[320] ICONST_ATTR = {
231-26,-8,29,21,4, 233-26,-8,29,21,4,
23219,-39,33,-7,-36, 23419,-39,33,-7,-36,
23356,54,48,40,29, 23556,54,48,40,29,
@@ -293,7 +295,7 @@ const signed char cdbk_nb_high1[320]={
29329,17,8,-29,-39, 29529,17,8,-29,-39,
294-69,18,15,-15,-5}; 296-69,18,15,-15,-5};
295 297
296const signed char cdbk_nb_high2[320]={ 298const signed char cdbk_nb_high2[320] ICONST_ATTR = {
29711,47,16,-9,-46, 29911,47,16,-9,-46,
298-32,26,-64,34,-5, 300-32,26,-64,34,-5,
29938,-7,47,20,2, 30138,-7,47,20,2,