diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-07-29 22:18:04 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-07-29 22:18:04 +0000 |
| commit | aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5 (patch) | |
| tree | cff75c9a211b84890e16eee128cda84dba33727a /apps/codecs/libwmapro/wma.c | |
| parent | e63e19b50773393064e7a458297b18a835e8b004 (diff) | |
| download | rockbox-aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5.zip rockbox-aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5.tar.gz rockbox-aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5.tar.bz2 rockbox-aa2fca384a7e71b7a9afbee0d68cfb2b7a5266f5.tar.xz | |
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
Diffstat (limited to 'apps/codecs/libwmapro/wma.c')
| -rw-r--r-- | apps/codecs/libwmapro/wma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libwmapro/wma.c b/apps/codecs/libwmapro/wma.c index c80d433..64ec240 100644 --- a/apps/codecs/libwmapro/wma.c +++ b/apps/codecs/libwmapro/wma.c @@ -116,7 +116,7 @@ int ff_wma_run_level_decode(GetBitContext* gb, offset += run_table[code]; sign = !get_bits1(gb); ptr[offset & coef_mask] = sign ? -level_table[code] : level_table[code]; - ptr[offset & coef_mask] <<= 17; + ptr[offset & coef_mask] <<= WMAPRO_FRACT; } else if (code == 1) { /** EOB */ break; @@ -144,7 +144,7 @@ int ff_wma_run_level_decode(GetBitContext* gb, } sign = !get_bits1(gb); ptr[offset & coef_mask] = sign ? -level : level; - ptr[offset & coef_mask] <<=17; + ptr[offset & coef_mask] <<= WMAPRO_FRACT; } } /** NOTE: EOB can be omitted */ |