Go to the documentation of this file.
21 #ifndef AVCODEC_MIPS_MATHOPS_H
22 #define AVCODEC_MIPS_MATHOPS_H
35 __asm__ (
"dmult.g %1, %2, %3 \n\t"
36 "daddu %0, %0, %1 \n\t"
37 :
"+r"(d),
"=&r"(m) :
"r"(a),
"r"(b));
40 #define MAC64(d, a, b) ((d) = MAC64(d, a, b))
45 __asm__ (
"dmult.g %1, %2, %3 \n\t"
46 "dsubu %0, %0, %1 \n\t"
47 :
"+r"(d),
"=&r"(m) :
"r"(a),
"r"(b));
50 #define MLS64(d, a, b) ((d) = MLS64(d, a, b))
57 __asm__ (
"dmult %2, %3 \n\t"
59 "daddu %0, %0, %1 \n\t"
60 :
"+r"(d),
"=&r"(m) :
"r"(a),
"r"(b)
64 #define MAC64(d, a, b) ((d) = MAC64(d, a, b))
69 __asm__ (
"dmult %2, %3 \n\t"
71 "dsubu %0, %0, %1 \n\t"
72 :
"+r"(d),
"=&r"(m) :
"r"(a),
"r"(b)
76 #define MLS64(d, a, b) ((d) = MLS64(d, a, b))