diff options
Diffstat (limited to 'apps/codecs/libwma/wmafixed.h')
-rw-r--r-- | apps/codecs/libwma/wmafixed.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/codecs/libwma/wmafixed.h b/apps/codecs/libwma/wmafixed.h index 99ddec759e..da0637fb68 100644 --- a/apps/codecs/libwma/wmafixed.h +++ b/apps/codecs/libwma/wmafixed.h | |||
@@ -61,6 +61,21 @@ long fsincos(unsigned long phase, fixed32 *cos); | |||
61 | __result; \ | 61 | __result; \ |
62 | }) | 62 | }) |
63 | 63 | ||
64 | |||
65 | #define fixmul32b(x, y) \ | ||
66 | ({ int32_t __hi; \ | ||
67 | uint32_t __lo; \ | ||
68 | int32_t __result; \ | ||
69 | asm ("smull %0, %1, %3, %4\n\t" \ | ||
70 | "movs %0, %0, lsr %5\n\t" \ | ||
71 | "adc %2, %0, %1, lsl %6" \ | ||
72 | : "=&r" (__lo), "=&r" (__hi), "=r" (__result) \ | ||
73 | : "%r" (x), "r" (y), \ | ||
74 | "M" (31), "M" (32 - 31) \ | ||
75 | : "cc"); \ | ||
76 | __result; \ | ||
77 | }) | ||
78 | |||
64 | #elif defined(CPU_COLDFIRE) | 79 | #elif defined(CPU_COLDFIRE) |
65 | static inline int32_t fixmul32(int32_t x, int32_t y) | 80 | static inline int32_t fixmul32(int32_t x, int32_t y) |
66 | { | 81 | { |