diff --git a/libavcodec/ppc/mathops.h b/libavcodec/ppc/mathops.h index adf04cb1dacd530f2fd7f2c0d658189cb456cedd..2b5a5c4eb0d7fbbd8616c1aa9427bdca0ae1928a 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 */