mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
audioconvert: refactor peaks resampler
Use common code in macro and generate arch specific version. Compile with -Ofast to optimize some fmaxf calls.
This commit is contained in:
parent
a79b5c86ea
commit
6e9e02b420
9 changed files with 89 additions and 110 deletions
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include <tmmintrin.h>
|
||||
|
||||
static void inner_product_ssse3(float *d, const float * SPA_RESTRICT s,
|
||||
static inline void inner_product_ssse3(float *d, const float * SPA_RESTRICT s,
|
||||
const float * SPA_RESTRICT taps, uint32_t n_taps)
|
||||
{
|
||||
__m128 sum = _mm_setzero_ps();
|
||||
|
|
@ -97,7 +97,7 @@ static void inner_product_ssse3(float *d, const float * SPA_RESTRICT s,
|
|||
_mm_store_ss(d, sum);
|
||||
}
|
||||
|
||||
static void inner_product_ip_ssse3(float *d, const float * SPA_RESTRICT s,
|
||||
static inline void inner_product_ip_ssse3(float *d, const float * SPA_RESTRICT s,
|
||||
const float * SPA_RESTRICT t0, const float * SPA_RESTRICT t1, float x,
|
||||
uint32_t n_taps)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue