mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -05:00
audiomixer: add AVX optimized mixer functions
This commit is contained in:
parent
d8eb7ce81f
commit
e2f6a7a34e
4 changed files with 152 additions and 0 deletions
|
|
@ -35,6 +35,16 @@ if have_sse2
|
|||
simd_cargs += ['-DHAVE_SSE2']
|
||||
simd_dependencies += audiomixer_sse2
|
||||
endif
|
||||
if have_avx and have_fma
|
||||
audiomixer_avx = static_library('audiomixer_avx',
|
||||
['mix-ops-avx.c'],
|
||||
c_args : [avx_args, fma_args, '-O3', '-DHAVE_AVX', '-DHAVE_FMA'],
|
||||
include_directories : [spa_inc],
|
||||
install : false
|
||||
)
|
||||
simd_cargs += ['-DHAVE_AVX', '-DHAVE_FMA']
|
||||
simd_dependencies += audiomixer_avx
|
||||
endif
|
||||
|
||||
audiomixerlib = shared_library('spa-audiomixer',
|
||||
audiomixer_sources,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue