diff options
author | James Almer <jamrial@gmail.com> | 2017-09-27 23:10:09 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-27 23:10:09 -0300 |
commit | 3b345d389be2d67017f904caa21713f53a8e8c90 (patch) | |
tree | 44d50b299738c39f3631855bf5a67464ec0d4540 /libavutil/arm | |
parent | 522f87708653af3badcdc33be983bcc6009de49b (diff) | |
download | ffmpeg-3b345d389be2d67017f904caa21713f53a8e8c90.tar.gz |
avutil/cpu: split flag checks per arch in av_cpu_max_align()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/arm')
-rw-r--r-- | libavutil/arm/cpu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/arm/cpu.c b/libavutil/arm/cpu.c index 3889ef011c..81e85e2525 100644 --- a/libavutil/arm/cpu.c +++ b/libavutil/arm/cpu.c @@ -158,3 +158,13 @@ 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; +} |