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

@ -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]) \