replace a few CLAMPs by PA_CLAMP_UNLIKELY

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2040 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2007-11-09 14:20:12 +00:00
parent 01490319d3
commit c1985c2acc
3 changed files with 7 additions and 7 deletions

View file

@ -177,14 +177,14 @@ static int sink_input_peek_cb(pa_sink_input *i, size_t length, pa_memchunk *chun
p = src + c;
q = u->input;
for (j = 0; j < n; j++, p += u->channels, q++)
*q = CLAMP(*p, -1.0, 1.0);
*q = PA_CLAMP_UNLIKELY(*p, -1.0, 1.0);
u->descriptor->run(u->handle[c], n);
q = u->output;
p = dst + c;
for (j = 0; j < n; j++, q++, p += u->channels)
*p = CLAMP(*q, -1.0, 1.0);
*p = PA_CLAMP_UNLIKELY(*q, -1.0, 1.0);
}
pa_memblock_release(tchunk.memblock);