From fe8ae10ab41af912bee3d6c5b0dd50ddc74739fa Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Wed, 4 Jul 2007 17:51:52 +0000 Subject: Attempt #2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13786 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwma/wmafixed.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'apps/codecs/libwma/wmafixed.c') diff --git a/apps/codecs/libwma/wmafixed.c b/apps/codecs/libwma/wmafixed.c index 45a827af15..7c38009754 100644 --- a/apps/codecs/libwma/wmafixed.c +++ b/apps/codecs/libwma/wmafixed.c @@ -53,30 +53,8 @@ fixed64 Fixed32To64(fixed32 x) /*Sign-15.16 format */ #ifdef CPU_ARM /* these are defines in wmafixed.h*/ - - #elif defined(CPU_COLDFIRE) -inline int32_t fixmul32(int32_t x, int32_t y) -{ -#if PRECISION != 16 -#warning Coldfire fixmul32() only works for PRECISION == 16 -#endif - int32_t t1; - asm ( - "mac.l %[x], %[y], %%acc0 \n" /* multiply */ - "mulu.l %[y], %[x] \n" /* get lower half, avoid emac stall */ - "movclr.l %%acc0, %[t1] \n" /* get higher half */ - "lsr.l #1, %[t1] \n" - "move.w %[t1], %[x] \n" - "swap %[x] \n" - : /* outputs */ - [t1]"=&d"(t1), - [x] "+d" (x) - : /* inputs */ - [y] "d" (y) - ); - return x; -} + #else fixed32 fixmul32(fixed32 x, fixed32 y) @@ -91,7 +69,6 @@ fixed32 fixmul32(fixed32 x, fixed32 y) } - /* 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 -- cgit v1.2.3