diff options
author | Martin Storsjö <martin@martin.st> | 2023-10-12 23:31:33 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2024-09-27 00:04:30 +0300 |
commit | e6eabb7ce757a03bb52909b3f10b920f9892a2a6 (patch) | |
tree | 87cba18686a62db16959385fb339fa9302ef2804 /libavutil/cpu.c | |
parent | e6e56fd7a7738c30f3052067ba35cba346fdde8c (diff) | |
download | ffmpeg-e6eabb7ce757a03bb52909b3f10b920f9892a2a6.tar.gz |
aarch64: Add CPU feature flags for SVE and SVE2
Add code for detecting the feature on Linux and Windows.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/cpu.c')
-rw-r--r-- | libavutil/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c index df00bd541f..e16ebc0d38 100644 --- a/libavutil/cpu.c +++ b/libavutil/cpu.c @@ -180,6 +180,8 @@ int av_parse_cpu_caps(unsigned *flags, const char *s) { "vfp", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_VFP }, .unit = "flags" }, { "dotprod", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_DOTPROD }, .unit = "flags" }, { "i8mm", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_I8MM }, .unit = "flags" }, + { "sve", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_SVE }, .unit = "flags" }, + { "sve2", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_SVE2 }, .unit = "flags" }, #elif ARCH_MIPS { "mmi", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_MMI }, .unit = "flags" }, { "msa", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_MSA }, .unit = "flags" }, |