[opus] [PATCH] Use NEON intrinsics detection that fails with gcc 4.8.

Thomas Daede daede003 at umn.edu
Thu Mar 23 20:59:43 UTC 2017


gcc 4.8's NEON intrinsics have bugs that prevent opus's
NEON intrinsics from compiling.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index fca746f..f945b9a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -471,7 +471,7 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[
          ]],
          [[
             static float32x4_t A0, A1, SUMM;
-            SUMM = vmlaq_f32(SUMM, A0, A1);
+            SUMM = vmlaq_lane_f32(SUMM, A0, vget_low_f32(A1), 0);
             return (int)vgetq_lane_f32(SUMM, 0);
          ]]
       )
-- 
2.9.3



More information about the opus mailing list