fmt-ops: add avx2 optimized version

Only one optimized version but the sse2 version are compiled with
the avx2 flags so that they get optimized better.
This commit is contained in:
Wim Taymans 2020-03-16 16:11:29 +01:00
parent 6eca935e61
commit 3a911dfe3b
7 changed files with 821 additions and 28 deletions

View file

@ -31,8 +31,7 @@ conv_s24_to_f32d_1s_sse41(void *data, void * SPA_RESTRICT dst[], const void * SP
uint32_t n_channels, uint32_t n_samples)
{
const uint8_t *s = src;
float **d = (float **) dst;
float *d0 = d[0];
float *d0 = dst[0];
uint32_t n, unrolled;
__m128i in;
__m128 out, factor = _mm_set1_ps(1.0f / S24_SCALE);