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:
Wim Taymans 2020-03-16 16:11:29 +01:00
parent 6eca935e61
commit 3a911dfe3b
7 changed files with 821 additions and 28 deletions

View file

@ -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,