summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/mathops.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/ppc/mathops.h')
-rw-r--r--libavcodec/ppc/mathops.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/ppc/mathops.h b/libavcodec/ppc/mathops.h
index adf04cb1da..2b5a5c4eb0 100644
--- a/libavcodec/ppc/mathops.h
+++ b/libavcodec/ppc/mathops.h
@@ -37,4 +37,11 @@
__rt; })
#endif
+#define MULH MULH
+static inline av_const int MULH(int a, int b){
+ int r;
+ __asm__ ("mulhw %0, %1, %2" : "=r"(r) : "r"(a), "r"(b));
+ return r;
+}
+
#endif /* AVCODEC_PPC_MATHOPS_H */