diff options
Diffstat (limited to 'apps/fracmul.h')
-rw-r--r-- | apps/fracmul.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/fracmul.h b/apps/fracmul.h index 624b5de794..6aaedaf3e6 100644 --- a/apps/fracmul.h +++ b/apps/fracmul.h | |||
@@ -37,7 +37,7 @@ static inline int32_t FRACMUL(int32_t x, int32_t y) | |||
37 | * bits after a shift left by the constant z. NOTE: Only works for shifts of | 37 | * bits after a shift left by the constant z. NOTE: Only works for shifts of |
38 | * 1 to 8 on Coldfire! | 38 | * 1 to 8 on Coldfire! |
39 | */ | 39 | */ |
40 | static inline FORCE_INLINE int32_t FRACMUL_SHL(int32_t x, int32_t y, int z) | 40 | static FORCE_INLINE int32_t FRACMUL_SHL(int32_t x, int32_t y, int z) |
41 | { | 41 | { |
42 | int32_t t, t2; | 42 | int32_t t, t2; |
43 | asm ("mac.l %[a], %[b], %%acc0\n\t" | 43 | asm ("mac.l %[a], %[b], %%acc0\n\t" |
@@ -73,7 +73,7 @@ static inline int32_t FRACMUL(int32_t x, int32_t y) | |||
73 | /* Multiply two S.31 fractional integers, and return the 32 most significant | 73 | /* Multiply two S.31 fractional integers, and return the 32 most significant |
74 | * bits after a shift left by the constant z. | 74 | * bits after a shift left by the constant z. |
75 | */ | 75 | */ |
76 | static inline int32_t FRACMUL_SHL(int32_t x, int32_t y, int z) | 76 | static FORCE_INLINE int32_t FRACMUL_SHL(int32_t x, int32_t y, int z) |
77 | { | 77 | { |
78 | int32_t t, t2; | 78 | int32_t t, t2; |
79 | asm ("smull %[t], %[t2], %[a], %[b]\n\t" | 79 | asm ("smull %[t], %[t2], %[a], %[b]\n\t" |
@@ -81,7 +81,7 @@ static inline int32_t FRACMUL_SHL(int32_t x, int32_t y, int z) | |||
81 | "orr %[t], %[t2], %[t], lsr %[d]\n\t" | 81 | "orr %[t], %[t2], %[t], lsr %[d]\n\t" |
82 | : [t] "=&r" (t), [t2] "=&r" (t2) | 82 | : [t] "=&r" (t), [t2] "=&r" (t2) |
83 | : [a] "r" (x), [b] "r" (y), | 83 | : [a] "r" (x), [b] "r" (y), |
84 | [c] "M" ((z) + 1), [d] "M" (31 - (z))); | 84 | [c] "Mr" ((z) + 1), [d] "Mr" (31 - (z))); |
85 | return t; | 85 | return t; |
86 | } | 86 | } |
87 | 87 | ||