diff options
author | Thom Johansen <thomj@rockbox.org> | 2005-06-11 14:45:48 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2005-06-11 14:45:48 +0000 |
commit | 5f12af28fb46d3d14e3168a55a34f3267543b312 (patch) | |
tree | cb5fa7829bba484deb095f4aa453caab5acdc298 /apps/codecs/liba52/bit_allocate.c | |
parent | c0f9ad61fbf4ea4e774b42a95a8f567a1fb1db1b (diff) | |
download | rockbox-5f12af28fb46d3d14e3168a55a34f3267543b312.tar.gz rockbox-5f12af28fb46d3d14e3168a55a34f3267543b312.zip |
Big performance improvement for liba52. A couple of small ASM opts, and lots IRAM usage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6676 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/liba52/bit_allocate.c')
-rw-r--r-- | apps/codecs/liba52/bit_allocate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/liba52/bit_allocate.c b/apps/codecs/liba52/bit_allocate.c index 79c4ad8753..f72cd75f0a 100644 --- a/apps/codecs/liba52/bit_allocate.c +++ b/apps/codecs/liba52/bit_allocate.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "a52.h" | 28 | #include "a52.h" |
29 | #include "a52_internal.h" | 29 | #include "a52_internal.h" |
30 | 30 | ||
31 | static int hthtab[3][50] = { | 31 | static int hthtab[3][50] IDATA_ATTR = { |
32 | {0x730, 0x730, 0x7c0, 0x800, 0x820, 0x840, 0x850, 0x850, 0x860, 0x860, | 32 | {0x730, 0x730, 0x7c0, 0x800, 0x820, 0x840, 0x850, 0x850, 0x860, 0x860, |
33 | 0x860, 0x860, 0x860, 0x870, 0x870, 0x870, 0x880, 0x880, 0x890, 0x890, | 33 | 0x860, 0x860, 0x860, 0x870, 0x870, 0x870, 0x880, 0x880, 0x890, 0x890, |
34 | 0x8a0, 0x8a0, 0x8b0, 0x8b0, 0x8c0, 0x8c0, 0x8d0, 0x8e0, 0x8f0, 0x900, | 34 | 0x8a0, 0x8a0, 0x8b0, 0x8b0, 0x8c0, 0x8c0, 0x8d0, 0x8e0, 0x8f0, 0x900, |
@@ -46,7 +46,7 @@ static int hthtab[3][50] = { | |||
46 | 0x8d0, 0x8b0, 0x840, 0x7f0, 0x790, 0x760, 0x7a0, 0x7c0, 0x7b0, 0x720} | 46 | 0x8d0, 0x8b0, 0x840, 0x7f0, 0x790, 0x760, 0x7a0, 0x7c0, 0x7b0, 0x720} |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static int8_t baptab[305] = { | 49 | static int8_t baptab[305] IDATA_ATTR = { |
50 | 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, | 50 | 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, |
51 | 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, | 51 | 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, |
52 | 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, | 52 | 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, |
@@ -71,11 +71,11 @@ static int8_t baptab[305] = { | |||
71 | 0, 0, 0, 0 /* 148 padding elems */ | 71 | 0, 0, 0, 0 /* 148 padding elems */ |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static int bndtab[30] = {21, 22, 23, 24, 25, 26, 27, 28, 31, 34, | 74 | static int bndtab[30] IDATA_ATTR = {21, 22, 23, 24, 25, 26, 27, 28, 31, 34, |
75 | 37, 40, 43, 46, 49, 55, 61, 67, 73, 79, | 75 | 37, 40, 43, 46, 49, 55, 61, 67, 73, 79, |
76 | 85, 97, 109, 121, 133, 157, 181, 205, 229, 253}; | 76 | 85, 97, 109, 121, 133, 157, 181, 205, 229, 253}; |
77 | 77 | ||
78 | static int8_t latab[256] = { | 78 | static int8_t latab[256] IDATA_ATTR = { |
79 | -64, -63, -62, -61, -60, -59, -58, -57, -56, -55, -54, -53, | 79 | -64, -63, -62, -61, -60, -59, -58, -57, -56, -55, -54, -53, |
80 | -52, -52, -51, -50, -49, -48, -47, -47, -46, -45, -44, -44, | 80 | -52, -52, -51, -50, -49, -48, -47, -47, -46, -45, -44, -44, |
81 | -43, -42, -41, -41, -40, -39, -38, -38, -37, -36, -36, -35, | 81 | -43, -42, -41, -41, -40, -39, -38, -38, -37, -36, -36, -35, |