]> git.sesse.net Git - ffmpeg/commit
libavutil: Detect MMI and MSA flags for MIPS
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Sat, 18 Jul 2020 15:35:39 +0000 (23:35 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Jul 2020 15:21:58 +0000 (17:21 +0200)
commite387fcd01cb84d9493f3b96158addd2a85f086c6
tree069646752e201a2b21d44740ef0dc19238d39689
parentd5380f068d8c28ab3d2ffcea445a2a8072c30503
libavutil: Detect MMI and MSA flags for MIPS

Add MMI & MSA runtime detection for MIPS.

Basically there are two code pathes. For systems that
natively support CPUCFG instruction or kernel emulated
that instruction, we'll sense this feature from HWCAP and
report the flags according to values grab from CPUCFG. For
systems that have no CPUCFG (or not export it in HWCAP),
we'll parse /proc/cpuinfo instead.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/cpu.c
libavutil/cpu.h
libavutil/cpu_internal.h
libavutil/mips/Makefile
libavutil/mips/cpu.c [new file with mode: 0644]
libavutil/mips/cpu.h [new file with mode: 0644]
libavutil/tests/cpu.c
tests/checkasm/checkasm.c