summaryrefslogtreecommitdiff
path: root/apps/codecs/libwma/wmafixed.c
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2007-07-08 05:16:24 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2007-07-08 05:16:24 +0000
commitf5114daa730c05c6967bb4d908c934d0e3a8f994 (patch)
tree441a631837abe3a603f82298e77968a861587ddd /apps/codecs/libwma/wmafixed.c
parent68d70b35d8b8208bf4894825e65bdb8f110c9150 (diff)
downloadrockbox-f5114daa730c05c6967bb4d908c934d0e3a8f994.zip
rockbox-f5114daa730c05c6967bb4d908c934d0e3a8f994.tar.gz
rockbox-f5114daa730c05c6967bb4d908c934d0e3a8f994.tar.bz2
rockbox-f5114daa730c05c6967bb4d908c934d0e3a8f994.tar.xz
Move MDCT reconstruction window code over to new trig function. Improves accuracy significantly and slightly reduces code size. Codec SNR now appears to be limited by truncation to 16 bit. Comparison to MS decoder gives > 91 dB of agreement, and a lower RMS error verses the source wav then MS. Additionally, move one commonly accessed table into IRAM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13813 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwma/wmafixed.c')
-rw-r--r--apps/codecs/libwma/wmafixed.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/codecs/libwma/wmafixed.c b/apps/codecs/libwma/wmafixed.c
index 7c38009..3a902dd 100644
--- a/apps/codecs/libwma/wmafixed.c
+++ b/apps/codecs/libwma/wmafixed.c
@@ -68,7 +68,7 @@ fixed32 fixmul32(fixed32 x, fixed32 y)
return (fixed32)temp;
}
-
+#endif
/*
Special fixmul32 that does a 16.16 x 1.31 multiply that returns a 16.16 value.
this is needed because the fft constants are all normalized to be less then 1
@@ -76,7 +76,7 @@ fixed32 fixmul32(fixed32 x, fixed32 y)
*/
-
+#ifndef CPU_ARM
fixed32 fixmul32b(fixed32 x, fixed32 y)
{
fixed64 temp;
@@ -88,10 +88,10 @@ fixed32 fixmul32b(fixed32 x, fixed32 y)
return (fixed32)temp;
}
-
#endif
+
/*
Not performance senstitive code here
@@ -275,6 +275,7 @@ long fsincos(unsigned long phase, fixed32 *cos)
*/
+#if 0
fixed32 fixsin32(fixed32 x)
{
@@ -325,3 +326,4 @@ fixed32 fixcos32(fixed32 x)
{
return fixsin32(x - (M_PI_F>>1))*-1;
}
+#endif