From c38ddac43ac01aca0ec307ba02c492f867fe5364 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Tue, 15 Nov 2005 13:51:14 +0000 Subject: Speed up layer 1 decoding considerably. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7892 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libmad/layer12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/codecs/libmad') diff --git a/apps/codecs/libmad/layer12.c b/apps/codecs/libmad/layer12.c index fb71fb059d..76adb09703 100644 --- a/apps/codecs/libmad/layer12.c +++ b/apps/codecs/libmad/layer12.c @@ -50,7 +50,7 @@ mad_fixed_t const sf_table[64] ICONST_ATTR = { /* linear scaling table */ static -mad_fixed_t const linear_table[14] = { +mad_fixed_t const linear_table[14] IDATA_ATTR = { MAD_F(0x15555555), /* 2^2 / (2^2 - 1) == 1.33333333333333 */ MAD_F(0x12492492), /* 2^3 / (2^3 - 1) == 1.14285714285714 */ MAD_F(0x11111111), /* 2^4 / (2^4 - 1) == 1.06666666666667 */ @@ -71,7 +71,7 @@ mad_fixed_t const linear_table[14] = { * NAME: I_sample() * DESCRIPTION: decode one requantized Layer I sample from a bitstream */ -static +static inline mad_fixed_t I_sample(struct mad_bitptr *ptr, unsigned int nb) { mad_fixed_t sample; -- cgit v1.2.3