summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-02-15 23:13:26 +0000
committerJens Arnold <amiconn@rockbox.org>2009-02-15 23:13:26 +0000
commitd8ff94121fd855d86a10a4bb98ad426a3e119c20 (patch)
tree19eca173173d72541385308bc9399b7ad6de300f /apps/recorder
parent789b0a2eb9ae94a10abd590c91e3ae8588137e37 (diff)
downloadrockbox-d8ff94121fd855d86a10a4bb98ad426a3e119c20.tar.gz
rockbox-d8ff94121fd855d86a10a4bb98ad426a3e119c20.zip
Get rid of a useless copy instruction in the SH1 32*32->64bit multiply routines (signed and unsigned).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20013 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/resize.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/recorder/resize.h b/apps/recorder/resize.h
index d1dabaae09..4ea4eaa9a0 100644
--- a/apps/recorder/resize.h
+++ b/apps/recorder/resize.h
@@ -78,14 +78,13 @@ static inline unsigned sc_mul32(unsigned a, unsigned b)
78 "addc %[t2], %[t3] \n" /* t3 += t2, carry -> t2 */ 78 "addc %[t2], %[t3] \n" /* t3 += t2, carry -> t2 */
79 "movt %[t2] \n" 79 "movt %[t2] \n"
80 "mulu %[a], %[b] \n" /* b * d */ 80 "mulu %[a], %[b] \n" /* b * d */
81 "mov %[t3], %[t1] \n" /* t2t3 <<= 16 */ 81 "mov %[t3], %[t1] \n" /* t1t3 = t2t3 << 16 */
82 "xtrct %[t2], %[t1] \n" 82 "xtrct %[t2], %[t1] \n"
83 "mov %[t1], %[t2] \n"
84 "shll16 %[t3] \n" 83 "shll16 %[t3] \n"
85 "sts macl, %[t1] \n" /* lo = b * d */ 84 "sts macl, %[t2] \n" /* lo = b * d */
86 "clrt \n" /* hi.lo += t2t3 */ 85 "clrt \n" /* hi.lo += t1t3 */
87 "addc %[t3], %[t1] \n" 86 "addc %[t3], %[t2] \n"
88 "addc %[t2], %[r] \n" 87 "addc %[t1], %[r] \n"
89 : /* outputs */ 88 : /* outputs */
90 [r] "=&r"(r), 89 [r] "=&r"(r),
91 [t1]"=&r"(t1), 90 [t1]"=&r"(t1),