audiomixer: improve sse and sse2 mixer

Add mixer benchmark.
Improve sse and sse2 mixer function by removin some read/write to the
temporary buffer at the expense of more scattered reads.
This commit is contained in:
Wim Taymans 2022-07-10 21:13:12 +02:00
parent 240d212822
commit 7a0445cb28
5 changed files with 339 additions and 95 deletions

View file

@ -95,3 +95,32 @@ foreach a : test_apps
)
endif
endforeach
benchmark_apps = [
'benchmark-mix-ops',
]
foreach a : benchmark_apps
benchmark(a,
executable(a, a + '.c',
dependencies : [ spa_dep, dl_lib, pthread_lib, mathlib, audiomixer_dep ],
include_directories : [ configinc ],
c_args : [ simd_cargs ],
install_rpath : spa_plugindir / 'audiomixer',
install : installed_tests_enabled,
install_dir : installed_tests_execdir / 'audiomixer'),
env : [
'SPA_PLUGIN_DIR=@0@'.format(spa_dep.get_variable('plugindir')),
])
if installed_tests_enabled
test_conf = configuration_data()
test_conf.set('exec', installed_tests_execdir / 'audiomixer' / a)
configure_file(
input: installed_tests_template,
output: a + '.test',
install_dir: installed_tests_metadir / 'audiomixer',
configuration: test_conf
)
endif
endforeach