diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-11-24 21:29:46 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-11-24 21:29:46 +0000 |
commit | d2ab6686794dda7fbfab8c33931a0fe0b39e0d01 (patch) | |
tree | 0a06f7293c7e4310e61bd695ca4d36543ed572d5 | |
parent | 40f2427192670db00abdfebd8690cb663693a831 (diff) | |
download | rockbox-d2ab6686794dda7fbfab8c33931a0fe0b39e0d01.tar.gz rockbox-d2ab6686794dda7fbfab8c33931a0fe0b39e0d01.zip |
Move some stuff out of IRAM for the voice decoder.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15796 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/libspeex/config-speex.h | 6 | ||||
-rw-r--r-- | apps/codecs/libspeex/gain_table.c | 2 | ||||
-rw-r--r-- | apps/codecs/libspeex/gain_table_lbr.c | 2 | ||||
-rw-r--r-- | apps/codecs/libspeex/hexc_10_32_table.c | 2 | ||||
-rw-r--r-- | apps/codecs/libspeex/hexc_table.c | 2 | ||||
-rw-r--r-- | apps/codecs/libspeex/high_lsp_tables.c | 6 | ||||
-rw-r--r-- | apps/codecs/libspeex/lsp_tables_nb.c | 10 |
7 files changed, 19 insertions, 11 deletions
diff --git a/apps/codecs/libspeex/config-speex.h b/apps/codecs/libspeex/config-speex.h index db15948330..fc2d4b9475 100644 --- a/apps/codecs/libspeex/config-speex.h +++ b/apps/codecs/libspeex/config-speex.h | |||
@@ -51,8 +51,14 @@ | |||
51 | 51 | ||
52 | #ifndef ROCKBOX_VOICE_CODEC | 52 | #ifndef ROCKBOX_VOICE_CODEC |
53 | #define EXC_ICONST_ATTR ICONST_ATTR | 53 | #define EXC_ICONST_ATTR ICONST_ATTR |
54 | #define GAIN_ICONST_ATTR ICONST_ATTR | ||
55 | #define HEXC_ICONST_ATTR ICONST_ATTR | ||
56 | #define LSP_ICONST_ATTR ICONST_ATTR | ||
54 | #else | 57 | #else |
55 | #define EXC_ICONST_ATTR | 58 | #define EXC_ICONST_ATTR |
59 | #define GAIN_ICONST_ATTR | ||
60 | #define HEXC_ICONST_ATTR | ||
61 | #define LSP_ICONST_ATTR | ||
56 | #endif | 62 | #endif |
57 | 63 | ||
58 | /* Define to 1 if you have the <dlfcn.h> header file. */ | 64 | /* Define to 1 if you have the <dlfcn.h> header file. */ |
diff --git a/apps/codecs/libspeex/gain_table.c b/apps/codecs/libspeex/gain_table.c index 7d222450e1..bf236e80fc 100644 --- a/apps/codecs/libspeex/gain_table.c +++ b/apps/codecs/libspeex/gain_table.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | #include "config-speex.h" | 32 | #include "config-speex.h" |
33 | 33 | ||
34 | const signed char gain_cdbk_nb[512] ICONST_ATTR = { | 34 | const signed char gain_cdbk_nb[512] GAIN_ICONST_ATTR = { |
35 | -32, -32, -32, 0, | 35 | -32, -32, -32, 0, |
36 | -28, -67, -5, 33, | 36 | -28, -67, -5, 33, |
37 | -42, -6, -32, 18, | 37 | -42, -6, -32, 18, |
diff --git a/apps/codecs/libspeex/gain_table_lbr.c b/apps/codecs/libspeex/gain_table_lbr.c index b97045b078..b74df318a3 100644 --- a/apps/codecs/libspeex/gain_table_lbr.c +++ b/apps/codecs/libspeex/gain_table_lbr.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | #include "config-speex.h" | 32 | #include "config-speex.h" |
33 | 33 | ||
34 | const signed char gain_cdbk_lbr[128] ICONST_ATTR = { | 34 | const signed char gain_cdbk_lbr[128] GAIN_ICONST_ATTR = { |
35 | -32, -32, -32, 0, | 35 | -32, -32, -32, 0, |
36 | -31, -58, -16, 22, | 36 | -31, -58, -16, 22, |
37 | -41, -24, -43, 14, | 37 | -41, -24, -43, 14, |
diff --git a/apps/codecs/libspeex/hexc_10_32_table.c b/apps/codecs/libspeex/hexc_10_32_table.c index f54f716db8..9a924e7ff0 100644 --- a/apps/codecs/libspeex/hexc_10_32_table.c +++ b/apps/codecs/libspeex/hexc_10_32_table.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #include "config-speex.h" | 33 | #include "config-speex.h" |
34 | 34 | ||
35 | const signed char hexc_10_32_table[320] ICONST_ATTR = { | 35 | const signed char hexc_10_32_table[320] HEXC_ICONST_ATTR = { |
36 | -3, -2, -1, 0, -4, 5, 35, -40, -9, 13, | 36 | -3, -2, -1, 0, -4, 5, 35, -40, -9, 13, |
37 | -44, 5, -27, -1, -7, 6, -11, 7, -8, 7, | 37 | -44, 5, -27, -1, -7, 6, -11, 7, -8, 7, |
38 | 19, -14, 15, -4, 9, -10, 10, -8, 10, -9, | 38 | 19, -14, 15, -4, 9, -10, 10, -8, 10, -9, |
diff --git a/apps/codecs/libspeex/hexc_table.c b/apps/codecs/libspeex/hexc_table.c index 98893f9a23..d892abd18c 100644 --- a/apps/codecs/libspeex/hexc_table.c +++ b/apps/codecs/libspeex/hexc_table.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #include "config-speex.h" | 33 | #include "config-speex.h" |
34 | 34 | ||
35 | const signed char hexc_table[1024] ICONST_ATTR = { | 35 | const signed char hexc_table[1024] HEXC_ICONST_ATTR = { |
36 | -24, 21, -20, 5, -5, -7, 14, -10, | 36 | -24, 21, -20, 5, -5, -7, 14, -10, |
37 | 2, -27, 16, -20, 0, -32, 26, 19, | 37 | 2, -27, 16, -20, 0, -32, 26, 19, |
38 | 8, -11, -41, 31, 28, -27, -32, 34, | 38 | 8, -11, -41, 31, 28, -27, -32, 34, |
diff --git a/apps/codecs/libspeex/high_lsp_tables.c b/apps/codecs/libspeex/high_lsp_tables.c index e82e87550d..56dc0f9faa 100644 --- a/apps/codecs/libspeex/high_lsp_tables.c +++ b/apps/codecs/libspeex/high_lsp_tables.c | |||
@@ -29,7 +29,9 @@ | |||
29 | POSSIBILITY OF SUCH DAMAGE. | 29 | POSSIBILITY OF SUCH DAMAGE. |
30 | */ | 30 | */ |
31 | 31 | ||
32 | const signed char high_lsp_cdbk[512]={ | 32 | #include "config-speex.h" |
33 | |||
34 | const signed char high_lsp_cdbk[512] LSP_ICONST_ATTR ={ | ||
33 | 39,12,-14,-20,-29,-61,-67,-76, | 35 | 39,12,-14,-20,-29,-61,-67,-76, |
34 | -32,-71,-67,68,77,46,34,5, | 36 | -32,-71,-67,68,77,46,34,5, |
35 | -13,-48,-46,-72,-81,-84,-60,-58, | 37 | -13,-48,-46,-72,-81,-84,-60,-58, |
@@ -96,7 +98,7 @@ const signed char high_lsp_cdbk[512]={ | |||
96 | -42,-74,-48,21,-4,70,52,10}; | 98 | -42,-74,-48,21,-4,70,52,10}; |
97 | 99 | ||
98 | 100 | ||
99 | const signed char high_lsp_cdbk2[512]={ | 101 | const signed char high_lsp_cdbk2[512] LSP_ICONST_ATTR ={ |
100 | -36,-62,6,-9,-10,-14,-56,23, | 102 | -36,-62,6,-9,-10,-14,-56,23, |
101 | 1,-26,23,-48,-17,12,8,-7, | 103 | 1,-26,23,-48,-17,12,8,-7, |
102 | 23,29,-36,-28,-6,-29,-17,-5, | 104 | 23,29,-36,-28,-6,-29,-17,-5, |
diff --git a/apps/codecs/libspeex/lsp_tables_nb.c b/apps/codecs/libspeex/lsp_tables_nb.c index e9fe9cebd5..6bdd2e4d0f 100644 --- a/apps/codecs/libspeex/lsp_tables_nb.c +++ b/apps/codecs/libspeex/lsp_tables_nb.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | #include "config-speex.h" | 32 | #include "config-speex.h" |
33 | 33 | ||
34 | const signed char cdbk_nb[640] ICONST_ATTR = { | 34 | const signed char cdbk_nb[640] LSP_ICONST_ATTR = { |
35 | 30,19,38,34,40,32,46,43,58,43, | 35 | 30,19,38,34,40,32,46,43,58,43, |
36 | 5,-18,-25,-40,-33,-55,-52,20,34,28, | 36 | 5,-18,-25,-40,-33,-55,-52,20,34,28, |
37 | -20,-63,-97,-92,61,53,47,49,53,75, | 37 | -20,-63,-97,-92,61,53,47,49,53,75, |
@@ -97,7 +97,7 @@ const signed char cdbk_nb[640] ICONST_ATTR = { | |||
97 | -6,-41,-67,6,-2,-9,19,2,85,74, | 97 | -6,-41,-67,6,-2,-9,19,2,85,74, |
98 | -22,-67,-84,-71,-50,3,11,-9,2,62}; | 98 | -22,-67,-84,-71,-50,3,11,-9,2,62}; |
99 | 99 | ||
100 | const signed char cdbk_nb_low1[320] ICONST_ATTR = { | 100 | const signed char cdbk_nb_low1[320] LSP_ICONST_ATTR = { |
101 | -34,-52,-15,45,2, | 101 | -34,-52,-15,45,2, |
102 | 23,21,52,24,-33, | 102 | 23,21,52,24,-33, |
103 | -9,-1,9,-44,-41, | 103 | -9,-1,9,-44,-41, |
@@ -163,7 +163,7 @@ const signed char cdbk_nb_low1[320] ICONST_ATTR = { | |||
163 | 13,20,20,-19,-22, | 163 | 13,20,20,-19,-22, |
164 | -2,-8,2,51,-51}; | 164 | -2,-8,2,51,-51}; |
165 | 165 | ||
166 | const signed char cdbk_nb_low2[320] ICONST_ATTR = { | 166 | const signed char cdbk_nb_low2[320] LSP_ICONST_ATTR = { |
167 | -6,53,-21,-24,4, | 167 | -6,53,-21,-24,4, |
168 | 26,17,-4,-37,25, | 168 | 26,17,-4,-37,25, |
169 | 17,-36,-13,31,3, | 169 | 17,-36,-13,31,3, |
@@ -229,7 +229,7 @@ const signed char cdbk_nb_low2[320] ICONST_ATTR = { | |||
229 | -23,-29,-16,1,-3, | 229 | -23,-29,-16,1,-3, |
230 | -8,-10,31,64,-65}; | 230 | -8,-10,31,64,-65}; |
231 | 231 | ||
232 | const signed char cdbk_nb_high1[320] ICONST_ATTR = { | 232 | const signed char cdbk_nb_high1[320] LSP_ICONST_ATTR = { |
233 | -26,-8,29,21,4, | 233 | -26,-8,29,21,4, |
234 | 19,-39,33,-7,-36, | 234 | 19,-39,33,-7,-36, |
235 | 56,54,48,40,29, | 235 | 56,54,48,40,29, |
@@ -295,7 +295,7 @@ const signed char cdbk_nb_high1[320] ICONST_ATTR = { | |||
295 | 29,17,8,-29,-39, | 295 | 29,17,8,-29,-39, |
296 | -69,18,15,-15,-5}; | 296 | -69,18,15,-15,-5}; |
297 | 297 | ||
298 | const signed char cdbk_nb_high2[320] ICONST_ATTR = { | 298 | const signed char cdbk_nb_high2[320] LSP_ICONST_ATTR = { |
299 | 11,47,16,-9,-46, | 299 | 11,47,16,-9,-46, |
300 | -32,26,-64,34,-5, | 300 | -32,26,-64,34,-5, |
301 | 38,-7,47,20,2, | 301 | 38,-7,47,20,2, |