diff options
author | Mans Rullgard <mans@mansr.com> | 2010-10-07 01:25:31 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-26 03:43:28 +0100 |
commit | d112aa5acc5876170cde03853e7cf330e1dccf19 (patch) | |
tree | 13af31def817ca0da2fd34f1e848b7708225c900 /libavutil | |
parent | 604eb152fcb9582ed8fba2285110a9e47f78c21d (diff) | |
download | ffmpeg-d112aa5acc5876170cde03853e7cf330e1dccf19.tar.gz |
MIPS: use inline asm only when supported by compiler
(cherry picked from commit 7a5a168abe36c91087e58d89262a3658d21ea2cc)
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/mips/intreadwrite.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |