From aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Thu, 29 Jul 2010 22:18:04 +0000 Subject: Maintenance and minor speedup of libwmapro. Comment unused arrays, fix comment, remove tabs and introduce WMAPRO_FRACT to wma.h to remove magic numbers. Swap operands of fixmul16-call for minor speedup on ARM (+1%). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27617 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwmapro/wmaprodec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/codecs/libwmapro/wmaprodec.c') diff --git a/apps/codecs/libwmapro/wmaprodec.c b/apps/codecs/libwmapro/wmaprodec.c index f3920f9..3431870 100644 --- a/apps/codecs/libwmapro/wmaprodec.c +++ b/apps/codecs/libwmapro/wmaprodec.c @@ -877,7 +877,7 @@ static int decode_coeffs(WMAProDecodeCtx *s, int c) for (i = 0; i < 4; i++) { if (vals[i]) { int sign = get_bits1(&s->gb) - 1; - ci->coeffs[cur_coeff] = (sign == -1)? -vals[i]<<17 : vals[i]<<17; + ci->coeffs[cur_coeff] = (sign == -1)? -vals[i]<coeffs[cur_coeff] = 0; @@ -1035,7 +1035,7 @@ static void inverse_channel_transform(WMAProDecodeCtx *s) data_ptr = data; while (data_ptr < data_end) - sum += fixmul16(*data_ptr++, *mat++); + sum += fixmul16(*mat++, *data_ptr++); (*ch)[y] = sum; } -- cgit v1.1