audioconvert: add avx optimizations

This commit is contained in:
Wim Taymans 2019-03-28 16:45:57 +01:00
parent 7f041f4098
commit e7ef13e310
11 changed files with 180 additions and 47 deletions

View file

@ -125,6 +125,10 @@ static void impl_native_update_rate(struct resample *r, double rate)
#if defined (HAVE_SSSE3)
if (SPA_FLAG_CHECK(r->cpu_flags, SPA_CPU_FLAG_SSSE3 | SPA_CPU_FLAG_SLOW_UNALIGNED))
data->func = is_full ? do_resample_full_ssse3 : do_resample_inter_ssse3;
#endif
#if defined(HAVE_AVX) && defined(HAVE_FMA)
if (SPA_FLAG_CHECK(r->cpu_flags, SPA_CPU_FLAG_AVX | SPA_CPU_FLAG_FMA3))
data->func = is_full ? do_resample_full_avx : do_resample_inter_avx;
#endif
}
}