4 Subject: "rsc" doesnt exist anymore in thumb2
6 diff --git a/fixed.h b/fixed.h
7 index 4b58abf..ba4bc26 100644
10 @@ -275,12 +275,25 @@ mad_fixed_t mad_f_mul_inline(mad_fixed_t x, mad_fixed_t y)
11 : "+r" (lo), "+r" (hi) \
15 +/* In Thumb-2, the RSB-immediate instruction is only allowed with a zero
16 + operand. If needed this code can also support Thumb-1
17 + (simply append "s" to the end of the second two instructions). */
18 +# define MAD_F_MLN(hi, lo) \
19 + asm ("rsbs %0, %0, #0\n\t" \
20 + "sbc %1, %1, %1\n\t" \
22 + : "+&r" (lo), "=&r" (hi) \
25 +#else /* ! __thumb__ */
26 # define MAD_F_MLN(hi, lo) \
27 asm ("rsbs %0, %2, #0\n\t" \
29 - : "=r" (lo), "=r" (hi) \
30 + : "=&r" (lo), "=r" (hi) \
31 : "0" (lo), "1" (hi) \
33 +#endif /* __thumb__ */
35 # define mad_f_scale64(hi, lo) \
36 ({ mad_fixed_t __result; \