[1/2] arm: Check for have_vfp_vm instead of !have_vfpv3 for float_dsp_vfp

Message ID 20171023074803.930-1-martin@martin.st
State Committed
Commit 17f5171cd4753e7f50e6d95df069bccbc90265bf
Headers show

Commit Message

Martin Storsjö Oct. 23, 2017, 7:48 a.m.
This was missed in e2710e790c0 since those functions weren't exercised
by checkasm.
---
 libavutil/arm/float_dsp_init_vfp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Diego Biurrun Oct. 24, 2017, 4:20 a.m. | #1
On Mon, Oct 23, 2017 at 10:48:02AM +0300, Martin Storsjö wrote:
> This was missed in e2710e790c0 since those functions weren't exercised
> by checkasm.

LGTM

Diego

Patch

diff --git a/libavutil/arm/float_dsp_init_vfp.c b/libavutil/arm/float_dsp_init_vfp.c
index 61ff2ed38e..79ba6ecd3d 100644
--- a/libavutil/arm/float_dsp_init_vfp.c
+++ b/libavutil/arm/float_dsp_init_vfp.c
@@ -36,11 +36,11 @@  void ff_butterflies_float_vfp(float *restrict v1, float *restrict v2, int len);
 
 av_cold void ff_float_dsp_init_vfp(AVFloatDSPContext *fdsp, int cpu_flags)
 {
-    if (!have_vfpv3(cpu_flags)) {
+    if (have_vfp_vm(cpu_flags)) {
         fdsp->vector_fmul = ff_vector_fmul_vfp;
         fdsp->vector_fmul_window = ff_vector_fmul_window_vfp;
     }
     fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_vfp;
-    if (!have_vfpv3(cpu_flags))
+    if (have_vfp_vm(cpu_flags))
         fdsp->butterflies_float = ff_butterflies_float_vfp;
 }