mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
240d212822
commit
7a0445cb28
5 changed files with 339 additions and 95 deletions
|
|
@ -39,7 +39,7 @@ void mix_ ##name## _c(struct mix_ops *ops, \
|
|||
type *d = dst; \
|
||||
const type **s = (const type **)src; \
|
||||
n_samples *= ops->n_channels; \
|
||||
if (n_src == 0 && zero) \
|
||||
if (n_src == 0 && zero) \
|
||||
memset(dst, 0, n_samples * sizeof(type)); \
|
||||
else if (n_src == 1) { \
|
||||
if (dst != src[0]) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue