diff options
Diffstat (limited to 'apps/recorder/resize.h')
-rw-r--r-- | apps/recorder/resize.h | 11 |
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), |