From: Doug Nazar Date: Mon, 2 Sep 2019 20:20:07 +0000 (-0400) Subject: meson: Reenable NEON support X-Git-Tag: 1.19.3~511^2~948 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32395fe83771f5a581811dd42cbc106529e13132;p=platform%2Fupstream%2Fgstreamer.git meson: Reenable NEON support --- diff --git a/meson.build b/meson.build index f63b721..264d84c 100644 --- a/meson.build +++ b/meson.build @@ -334,6 +334,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')