From f92345aa0d568ce4b22434e6b60989e233c9d43f Mon Sep 17 00:00:00 2001 From: Doug Nazar Date: Mon, 2 Sep 2019 16:20:07 -0400 Subject: [PATCH] meson: Reenable NEON support --- meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meson.build b/meson.build index 49a13ba..1b7413a 100644 --- a/meson.build +++ b/meson.build @@ -333,6 +333,18 @@ have_sse = cc.has_argument(sse_args) have_sse2 = cc.has_argument(sse2_args) have_sse41 = cc.has_argument(sse41_args) +if host_machine.cpu_family() == 'arm' + if cc.compiles(''' +#include +int32x4_t testfunc(int16_t *a, int16_t *b) { + asm volatile ("vmull.s16 q0, d0, d0" : : : "q0"); + return vmull_s16(vld1_s16(a), vld1_s16(b)); +} +''', name : 'NEON support') + core_conf.set('HAVE_ARM_NEON', true) + endif +endif + if gst_dep.type_name() == 'internal' gst_proj = subproject('gstreamer') -- 2.7.4