mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
neon: fix neon detection and compilation
This commit is contained in:
parent
ab3a6d3441
commit
a81e269a7e
3 changed files with 9 additions and 14 deletions
17
meson.build
17
meson.build
|
|
@ -95,17 +95,12 @@ have_avx = cc.has_argument(avx_args)
|
|||
have_avx2 = cc.has_argument(avx2_args)
|
||||
|
||||
have_neon = false
|
||||
if host_machine.cpu_family() == 'arm' or host_machine.cpu_family() == 'aarch64'
|
||||
if cc.compiles(
|
||||
'''
|
||||
#include <arm_neon.h>
|
||||
int32x4_t testfunc(int16_t *a, int16_t *b) {
|
||||
return vmull_s16(vld1_s16(a), vld1_s16(b));
|
||||
}
|
||||
''',
|
||||
name : 'NEON support')
|
||||
have_neon = true
|
||||
endif
|
||||
if host_machine.cpu_family() == 'aarch64'
|
||||
neon_args = []
|
||||
have_neon = true
|
||||
elif cc.has_argument('-mfpu=neon')
|
||||
neon_args = ['-mfpu=neon']
|
||||
have_neon = true
|
||||
endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue