small optimizations

Add some SPA_LIKELY
Enable FASTPATH by default
This commit is contained in:
Wim Taymans 2020-03-18 15:43:29 +01:00
parent 57f84ae5ae
commit 8a2af908a7
11 changed files with 55 additions and 44 deletions

View file

@ -51,7 +51,7 @@ static void impl_peaks_process(struct resample *r,
struct peaks_data *pd = r->data;
uint32_t c, i, o, end, chunk, o_count, i_count;
if (r->channels == 0)
if (SPA_UNLIKELY(r->channels == 0))
return;
for (c = 0; c < r->channels; c++) {