1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Nils Wallménius 2010-08-05 10:35:06 +00:00
parent f657e49103
commit a0dd4cd057

View file

@ -108,22 +108,7 @@
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; \