aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/arm
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-14 16:51:26 -0300
committerLuca Barbato <lu_zero@gentoo.org>2017-10-09 11:48:24 +0200
commit3d828c9fd51aa8c348ff11241e212e5834b4f806 (patch)
tree071b5d9d1f81407d65ce696142113397c0cd9ba8 /libavutil/arm
parentebfcce16ac44b83f6e815c70e91231bed9fcbc97 (diff)
downloadffmpeg-3d828c9fd51aa8c348ff11241e212e5834b4f806.tar.gz
cpu: split flag checks per arch in av_cpu_max_align()
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavutil/arm')
-rw-r--r--libavutil/arm/cpu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/arm/cpu.c b/libavutil/arm/cpu.c
index 2effb72610..a29adf2761 100644
--- a/libavutil/arm/cpu.c
+++ b/libavutil/arm/cpu.c
@@ -151,3 +151,12 @@ int ff_get_cpu_flags_arm(void)
}
#endif
+
+size_t ff_get_cpu_max_align_arm(void)
+{
+ int flags = av_get_cpu_flags();
+
+ if (flags & AV_CPU_FLAG_NEON)
+ return 16;
+ return 8;
+}