mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
fmt-ops: add avx2 optimized version
Only one optimized version but the sse2 version are compiled with the avx2 flags so that they get optimized better.
This commit is contained in:
parent
6eca935e61
commit
3a911dfe3b
7 changed files with 821 additions and 28 deletions
|
|
@ -74,6 +74,16 @@ if have_avx and have_fma
|
|||
simd_cargs += ['-DHAVE_AVX', '-DHAVE_FMA']
|
||||
simd_dependencies += audioconvert_avx
|
||||
endif
|
||||
if have_avx2
|
||||
audioconvert_avx2 = static_library('audioconvert_avx2',
|
||||
['fmt-ops-avx2.c'],
|
||||
c_args : [avx2_args, '-O3', '-DHAVE_AVX2'],
|
||||
include_directories : [spa_inc],
|
||||
install : false
|
||||
)
|
||||
simd_cargs += ['-DHAVE_AVX2']
|
||||
simd_dependencies += audioconvert_avx2
|
||||
endif
|
||||
|
||||
audioconvertlib = shared_library('spa-audioconvert',
|
||||
audioconvert_sources,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue