mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mips64: mark hi/lo registers clobbered in MAC64/MLS64 macros
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
206a070dce
commit
b93e934aee
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user