aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/aarch64
diff options
context:
space:
mode:
authorJanne Grunau <j@jannau.net>2014-04-05 13:46:51 +0200
committerJanne Grunau <janne-libav@jannau.net>2014-04-06 21:18:49 +0200
commit8675bcb0addb1c7fb0b04682d1f3f95d5b8dae14 (patch)
treefe474c79b62cf470d15fd1ee0f7993d19bf98788 /libavutil/aarch64
parenta027d2a8731f7c95dbb57be470160f0f94d6c97d (diff)
downloadffmpeg-8675bcb0addb1c7fb0b04682d1f3f95d5b8dae14.tar.gz
aarch64: add armv8 CPU flag
Diffstat (limited to 'libavutil/aarch64')
-rw-r--r--libavutil/aarch64/cpu.c5
-rw-r--r--libavutil/aarch64/cpu.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/libavutil/aarch64/cpu.c b/libavutil/aarch64/cpu.c
index 2cc2ccd9ef..37a7d8defa 100644
--- a/libavutil/aarch64/cpu.c
+++ b/libavutil/aarch64/cpu.c
@@ -22,6 +22,7 @@
int ff_get_cpu_flags_aarch64(void)
{
- return AV_CPU_FLAG_NEON * HAVE_NEON |
- AV_CPU_FLAG_VFP * HAVE_VFP;
+ return AV_CPU_FLAG_ARMV8 * HAVE_ARMV8 |
+ AV_CPU_FLAG_NEON * HAVE_NEON |
+ AV_CPU_FLAG_VFP * HAVE_VFP;
}
diff --git a/libavutil/aarch64/cpu.h b/libavutil/aarch64/cpu.h
index 704df48b85..f5b1d89132 100644
--- a/libavutil/aarch64/cpu.h
+++ b/libavutil/aarch64/cpu.h
@@ -23,6 +23,7 @@
#include "libavutil/cpu.h"
#include "libavutil/cpu_internal.h"
+#define have_armv8(flags) CPUEXT(flags, ARMV8)
#define have_neon(flags) CPUEXT(flags, NEON)
#define have_vfp(flags) CPUEXT(flags, VFP)