X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmips%2Fmathops.h;h=368290ac5b05221264cbcbd872cde55dafca01da;hb=7fd9d49ba7fa57629592b1f7064cb12d96984a14;hp=b58361f74d437323872f964ee420ca2fa0964a28;hpb=d197bd4f5ee752c95ebaf7d94257ca5121309674;p=ffmpeg diff --git a/libavcodec/mips/mathops.h b/libavcodec/mips/mathops.h index b58361f74d4..368290ac5b0 100644 --- a/libavcodec/mips/mathops.h +++ b/libavcodec/mips/mathops.h @@ -57,7 +57,8 @@ static inline av_const int64_t MAC64(int64_t d, int a, int b) __asm__ ("dmult %2, %3 \n\t" "mflo %1 \n\t" "daddu %0, %0, %1 \n\t" - : "+r"(d), "=&r"(m) : "r"(a), "r"(b)); + : "+r"(d), "=&r"(m) : "r"(a), "r"(b) + : "hi", "lo"); return d; } #define MAC64(d, a, b) ((d) = MAC64(d, a, b)) @@ -68,7 +69,8 @@ static inline av_const int64_t MLS64(int64_t d, int a, int b) __asm__ ("dmult %2, %3 \n\t" "mflo %1 \n\t" "dsubu %0, %0, %1 \n\t" - : "+r"(d), "=&r"(m) : "r"(a), "r"(b)); + : "+r"(d), "=&r"(m) : "r"(a), "r"(b) + : "hi", "lo"); return d; } #define MLS64(d, a, b) ((d) = MLS64(d, a, b))