summaryrefslogtreecommitdiff
path: root/libavcodec/mips/mathops.h
diff options
context:
space:
mode:
authorJames Cowgill <james410@cowgill.org.uk>2015-02-26 13:42:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2015-02-26 15:44:35 +0100
commit213e823dc6bcd965eb212bc820bf0c5a3617103c (patch)
treefc4659b67100f9c3b66a791bd3e8ff0b43563c20 /libavcodec/mips/mathops.h
parenta6a2da2f3202af0ea4cddf4465d3785714a86b9f (diff)
mips/mathops: remove 64-bit code
GCC is perfectly happy generating optimized multiplication code on its own for 64-bit arches. GCC refuses to optimize the loongson code when in 32-bit mode, so I've left that. Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mips/mathops.h')
-rw-r--r--libavcodec/mips/mathops.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/libavcodec/mips/mathops.h b/libavcodec/mips/mathops.h
index 368290ac5b..5673fc01ba 100644
--- a/libavcodec/mips/mathops.h
+++ b/libavcodec/mips/mathops.h
@@ -49,32 +49,6 @@ static inline av_const int64_t MLS64(int64_t d, int a, int b)
}
#define MLS64(d, a, b) ((d) = MLS64(d, a, b))
-#elif ARCH_MIPS64
-
-static inline av_const int64_t MAC64(int64_t d, int a, int b)
-{
- int64_t m;
- __asm__ ("dmult %2, %3 \n\t"
- "mflo %1 \n\t"
- "daddu %0, %0, %1 \n\t"
- : "+r"(d), "=&r"(m) : "r"(a), "r"(b)
- : "hi", "lo");
- return d;
-}
-#define MAC64(d, a, b) ((d) = MAC64(d, a, b))
-
-static inline av_const int64_t MLS64(int64_t d, int a, int b)
-{
- int64_t m;
- __asm__ ("dmult %2, %3 \n\t"
- "mflo %1 \n\t"
- "dsubu %0, %0, %1 \n\t"
- : "+r"(d), "=&r"(m) : "r"(a), "r"(b)
- : "hi", "lo");
- return d;
-}
-#define MLS64(d, a, b) ((d) = MLS64(d, a, b))
-
#endif
#endif /* HAVE_INLINE_ASM */