diff options
author | Jin Bo <jinbo@loongson.cn> | 2021-06-01 14:22:09 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-06-03 13:44:00 +0200 |
commit | fd5fd48659a956b1b890c217d04f77f2bdab6a44 (patch) | |
tree | fe1e3ec5cf789097e6db2193b65a18cf3083feb6 /libavutil/mips | |
parent | 864d1ef2fc88c300613a5a9f1465f98f3559110c (diff) | |
download | ffmpeg-fd5fd48659a956b1b890c217d04f77f2bdab6a44.tar.gz |
libavcodec/mips: Fix build errors reported by clang
Clang is more strict on the type of asm operands, float or double
type variable should use constraint 'f', integer variable should
use constraint 'r'.
Signed-off-by: Jin Bo <jinbo@loongson.cn>
Reviewed-by: yinshiyou-hf@loongson.cn
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/mips')
-rw-r--r-- | libavutil/mips/asmdefs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/mips/asmdefs.h b/libavutil/mips/asmdefs.h index 76bb2b93fa..659342bab9 100644 --- a/libavutil/mips/asmdefs.h +++ b/libavutil/mips/asmdefs.h @@ -27,6 +27,8 @@ #ifndef AVUTIL_MIPS_ASMDEFS_H #define AVUTIL_MIPS_ASMDEFS_H +#include <stdint.h> + #if defined(_ABI64) && _MIPS_SIM == _ABI64 # define mips_reg int64_t # define PTRSIZE " 8 " @@ -97,4 +99,10 @@ __asm__(".macro parse_r var r\n\t" ".endif\n\t" ".endm"); +/* General union structure for clang adaption */ +union mmi_intfloat64 { + int64_t i; + double f; +}; + #endif /* AVCODEC_MIPS_ASMDEFS_H */ |