mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
resample: add neon optimizations
This commit is contained in:
parent
397787ec3e
commit
67a5dd35be
5 changed files with 257 additions and 1 deletions
15
meson.build
15
meson.build
|
|
@ -80,6 +80,21 @@ have_fma = cc.has_argument(fma_args)
|
|||
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
|
||||
endif
|
||||
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set('PIPEWIRE_VERSION_MAJOR', pipewire_version_major)
|
||||
cdata.set('PIPEWIRE_VERSION_MINOR', pipewire_version_minor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue