mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioconvert: build C versions with -Ofast and -ffast-math
Move resampler implementations to a -c version. Compile some of the functions with other flags to make them more optimized.
This commit is contained in:
parent
0ba3e7c5db
commit
419517fd55
8 changed files with 156 additions and 95 deletions
|
|
@ -7,6 +7,20 @@ audioconvert_sources = [
|
|||
simd_cargs = []
|
||||
simd_dependencies = []
|
||||
|
||||
audioconvert_c = static_library('audioconvert_c',
|
||||
[ 'channelmix-ops-c.c',
|
||||
'biquad.c',
|
||||
'crossover.c',
|
||||
'volume-ops-c.c',
|
||||
'resample-native-c.c',
|
||||
'resample-peaks-c.c',
|
||||
'fmt-ops-c.c' ],
|
||||
c_args : [sse_args, '-Ofast', '-ffast-math'],
|
||||
dependencies : [ spa_dep ],
|
||||
install : false
|
||||
)
|
||||
simd_dependencies += audioconvert_c
|
||||
|
||||
if have_sse
|
||||
audioconvert_sse = static_library('audioconvert_sse',
|
||||
['resample-native-sse.c',
|
||||
|
|
@ -86,15 +100,10 @@ endif
|
|||
|
||||
audioconvert_lib = static_library('audioconvert',
|
||||
['fmt-ops.c',
|
||||
'biquad.c',
|
||||
'crossover.c',
|
||||
'channelmix-ops.c',
|
||||
'channelmix-ops-c.c',
|
||||
'resample-native.c',
|
||||
'resample-peaks.c',
|
||||
'fmt-ops-c.c',
|
||||
'volume-ops.c',
|
||||
'volume-ops-c.c' ],
|
||||
'volume-ops.c' ],
|
||||
c_args : [ simd_cargs, '-O3'],
|
||||
link_with : simd_dependencies,
|
||||
include_directories : [configinc],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue