From a0dd4cd057a3e701bf25fc8ac19d0d025f64f361 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Thu, 5 Aug 2010 10:35:06 +0000 Subject: libwmapro: remove coldfire fixmul24 as it is both incorrect and unused, fix fixmul 31 comment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27715 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libwmapro/wmapro_math.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'apps/codecs/libwmapro') diff --git a/apps/codecs/libwmapro/wmapro_math.h b/apps/codecs/libwmapro/wmapro_math.h index 17b4829362..54c5f45914 100644 --- a/apps/codecs/libwmapro/wmapro_math.h +++ b/apps/codecs/libwmapro/wmapro_math.h @@ -107,23 +107,8 @@ : [y] "d" ((Y))); \ x; \ }) - - /* Calculates: result = (X*Y)>>24 */ - #define fixmul24(X,Y) \ - ({ \ - int32_t t1, t2; \ - asm volatile ( \ - "mac.l %[x],%[y],%%acc0 \n\t" /* multiply */ \ - "move.l %%accext01, %[t1]\n\t" /* get lower 8 bits */ \ - "movclr.l %%acc0,%[t2] \n\t" /* get higher 24 bits */ \ - "asl.l #7,%[t2] \n\t" /* hi <<= 7, plus one free */ \ - "move.b %[t1],%[t2] \n\t" /* combine result */ \ - : [t1]"=&d"(t1), [t2]"=&d"(t2) \ - : [x] "d" ((X)), [y] "d" ((Y))); \ - t2; \ - }) - /* Calculates: result = (X*Y)>>31 (loses one bit of precision) */ + /* Calculates: result = (X*Y)>>31 (may lose msb to overflow) */ #define fixmul31(X,Y) \ ({ \ int32_t t; \ -- cgit v1.2.3