aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2010-10-07 01:25:31 +0100
committerMans Rullgard <mans@mansr.com>2011-01-23 19:05:08 +0000
commit7a5a168abe36c91087e58d89262a3658d21ea2cc (patch)
tree082df362113de262b7dcbfc6b2c3cafc40145665
parent2fd9035ddc4f6b9313023891a16b6e9820d958ed (diff)
downloadffmpeg-7a5a168abe36c91087e58d89262a3658d21ea2cc.tar.gz
MIPS: use inline asm only when supported by compiler
-rw-r--r--libavcodec/mips/mathops.h4
-rw-r--r--libavutil/mips/intreadwrite.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/mips/mathops.h b/libavcodec/mips/mathops.h
index a1b04ed951..b58361f74d 100644
--- a/libavcodec/mips/mathops.h
+++ b/libavcodec/mips/mathops.h
@@ -25,6 +25,8 @@
#include "config.h"
#include "libavutil/common.h"
+#if HAVE_INLINE_ASM
+
#if HAVE_LOONGSON
static inline av_const int64_t MAC64(int64_t d, int a, int b)
@@ -73,4 +75,6 @@ static inline av_const int64_t MLS64(int64_t d, int a, int b)
#endif
+#endif /* HAVE_INLINE_ASM */
+
#endif /* AVCODEC_MIPS_MATHOPS_H */
diff --git a/libavutil/mips/intreadwrite.h b/libavutil/mips/intreadwrite.h
index b7479d3446..cd4a9a9a67 100644
--- a/libavutil/mips/intreadwrite.h
+++ b/libavutil/mips/intreadwrite.h
@@ -24,6 +24,8 @@
#include <stdint.h>
#include "config.h"
+#if HAVE_INLINE_ASM
+
#define AV_RN32 AV_RN32
static av_always_inline uint32_t AV_RN32(const void *p)
{
@@ -91,4 +93,6 @@ static av_always_inline void AV_WN64(void *p, uint64_t v)
#endif /* ARCH_MIPS64 */
+#endif /* HAVE_INLINE_ASM */
+
#endif /* AVUTIL_MIPS_INTREADWRITE_H */