diff options
author | Wincent Balin <wincent@rockbox.org> | 2010-06-04 21:32:14 +0000 |
---|---|---|
committer | Wincent Balin <wincent@rockbox.org> | 2010-06-04 21:32:14 +0000 |
commit | 0133a4f0524a4e33a2fa0e929fc2ac18e021ac4b (patch) | |
tree | 788a105e1e7f486d59667f6d644094e90f26a351 | |
parent | 3e1847c52541ed6012272a1f99d597f5f9229ab1 (diff) | |
download | rockbox-0133a4f0524a4e33a2fa0e929fc2ac18e021ac4b.tar.gz rockbox-0133a4f0524a4e33a2fa0e929fc2ac18e021ac4b.zip |
pdbox: Reverted premature commit of Coldfire optimization.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26560 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/pdbox/PDa/src/m_fixed.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_fixed.h b/apps/plugins/pdbox/PDa/src/m_fixed.h index f015b09b0a..154b885abb 100644 --- a/apps/plugins/pdbox/PDa/src/m_fixed.h +++ b/apps/plugins/pdbox/PDa/src/m_fixed.h | |||
@@ -31,23 +31,6 @@ typedef int t_sample; | |||
31 | lo; \ | 31 | lo; \ |
32 | }) | 32 | }) |
33 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) | 33 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) |
34 | #elif defined(CPU_COLDFIRE) | ||
35 | #define mult(a,b) mult_cf((a),(b)) | ||
36 | static inline t_fixed mult_cf(t_fixed x, t_fixed y) | ||
37 | { | ||
38 | t_fixed t1, t2; | ||
39 | asm volatile ( | ||
40 | "mac.l %[x],%[y],%%acc0 \n" /* multiply */ | ||
41 | "mulu.l %[y],%[x] \n" /* get low half, avoid emac stall */ | ||
42 | "movclr.l %%acc0,%[t1] \n" /* get higher half */ | ||
43 | "asl.l %[shl],%[t1] \n" /* hi <<= 13, plus one free */ | ||
44 | "lsr.l %[shr],%[x] \n" /* (unsigned)lo >>= 18 */ | ||
45 | "or.l %[x],%[t1] \n" /* combine result */ | ||
46 | : [t1]"=&d"(t1), [t2]"=&d"(t2), [x]"+d"(x) | ||
47 | : [y]"d"(y), [shl]"d"(31-fix1), [shr]"d"(fix1)); | ||
48 | return t1; | ||
49 | } | ||
50 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) | ||
51 | #else /* CPU_... */ | 34 | #else /* CPU_... */ |
52 | #define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1) | 35 | #define mult(a,b) (long long)(((long long) (a) * (long long) (b))>>fix1) |
53 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) | 36 | #define idiv(a,b) ((((long long) (a) )<<fix1)/(long long) (b) ) |