mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-12 20:20:47 +08:00
lavu/cpu: detect RISC-V base extensions
This introduces compile-time and run-time CPU detection on RISC-V. In practice, I doubt that FFmpeg will ever see a RISC-V CPU without all of I, F and D extensions, and if it does, it probably won't have run-time detection. So the flags are essentially always set. But as things stand, checkasm wants them that way. Compare the ARMV8 flag on AArch64. We are nowhere near running short on CPU flag bits.
This commit is contained in:

committed by
Lynne

parent
179830108d
commit
b95e2fbd85
@@ -232,6 +232,10 @@ static const struct {
|
||||
{ "ALTIVEC", "altivec", AV_CPU_FLAG_ALTIVEC },
|
||||
{ "VSX", "vsx", AV_CPU_FLAG_VSX },
|
||||
{ "POWER8", "power8", AV_CPU_FLAG_POWER8 },
|
||||
#elif ARCH_RISCV
|
||||
{ "RVI", "rvi", AV_CPU_FLAG_RVI },
|
||||
{ "RVF", "rvf", AV_CPU_FLAG_RVF },
|
||||
{ "RVD", "rvd", AV_CPU_FLAG_RVD },
|
||||
#elif ARCH_MIPS
|
||||
{ "MMI", "mmi", AV_CPU_FLAG_MMI },
|
||||
{ "MSA", "msa", AV_CPU_FLAG_MSA },
|
||||
|
Reference in New Issue
Block a user