summaryrefslogtreecommitdiffstats
path: root/src/codec/gsm620.c
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2012-06-29 13:01:27 -0700
committerHarald Welte <laforge@gnumonks.org>2012-06-30 22:01:44 +0200
commit23431c75c8cc5df8712834e59dd80bd19b5fc298 (patch)
treeb2e0f9c2f60f1fef912d56e7ca1a6d5e2dbfee4b /src/codec/gsm620.c
parent200710e3eb9617897be2698077cf77909603f245 (diff)
codec: make data tables constant.
When declaring them constant, they are written on the .rodata section instead of .data, which means that they can be mapped directly from disk to memory. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
Diffstat (limited to 'src/codec/gsm620.c')
-rw-r--r--src/codec/gsm620.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec/gsm620.c b/src/codec/gsm620.c
index 09aca502..fa570e4f 100644
--- a/src/codec/gsm620.c
+++ b/src/codec/gsm620.c
@@ -27,7 +27,7 @@
/* This array encode mapping between GSM 05.03 Table 3a (bits
* ordering before channel coding on TCH) and GSM 06.20 Table B.1
* (bit ordering on A-bis */
-uint16_t gsm620_unvoiced_bitorder[112] = {
+const uint16_t gsm620_unvoiced_bitorder[112] = {
3, /* R0:1 */
25, /* LPC 3:7 */
52, /* GSP 0-1:2 */
@@ -146,7 +146,7 @@ uint16_t gsm620_unvoiced_bitorder[112] = {
/* This array encode mapping between GSM 05.03 Table 3b (bits
* ordering before channel coding on TCH) and GSM 06.20 Table B.2
* (bit ordering on A-bis */
-uint16_t gsm620_voiced_bitorder[112] = {
+const uint16_t gsm620_voiced_bitorder[112] = {
13, /* LPC 1:2 */
14, /* LPC 1:1 */
20, /* LPC 2:4 */