From 5f12af28fb46d3d14e3168a55a34f3267543b312 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Sat, 11 Jun 2005 14:45:48 +0000 Subject: 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 --- apps/codecs/liba52/bit_allocate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/codecs/liba52/bit_allocate.c') 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 @@ #include "a52.h" #include "a52_internal.h" -static int hthtab[3][50] = { +static int hthtab[3][50] IDATA_ATTR = { {0x730, 0x730, 0x7c0, 0x800, 0x820, 0x840, 0x850, 0x850, 0x860, 0x860, 0x860, 0x860, 0x860, 0x870, 0x870, 0x870, 0x880, 0x880, 0x890, 0x890, 0x8a0, 0x8a0, 0x8b0, 0x8b0, 0x8c0, 0x8c0, 0x8d0, 0x8e0, 0x8f0, 0x900, @@ -46,7 +46,7 @@ static int hthtab[3][50] = { 0x8d0, 0x8b0, 0x840, 0x7f0, 0x790, 0x760, 0x7a0, 0x7c0, 0x7b0, 0x720} }; -static int8_t baptab[305] = { +static int8_t baptab[305] IDATA_ATTR = { 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 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] = { 0, 0, 0, 0 /* 148 padding elems */ }; -static int bndtab[30] = {21, 22, 23, 24, 25, 26, 27, 28, 31, 34, +static int bndtab[30] IDATA_ATTR = {21, 22, 23, 24, 25, 26, 27, 28, 31, 34, 37, 40, 43, 46, 49, 55, 61, 67, 73, 79, 85, 97, 109, 121, 133, 157, 181, 205, 229, 253}; -static int8_t latab[256] = { +static int8_t latab[256] IDATA_ATTR = { -64, -63, -62, -61, -60, -59, -58, -57, -56, -55, -54, -53, -52, -52, -51, -50, -49, -48, -47, -47, -46, -45, -44, -44, -43, -42, -41, -41, -40, -39, -38, -38, -37, -36, -36, -35, -- cgit v1.2.3