1
0
Fork 0
forked from len0rd/rockbox

Turns out that using likely in the loop condition gives a nice little speedup to so let's do it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19168 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2008-11-21 14:23:34 +00:00
parent 8a7c4af27c
commit 7ef2a053b8

View file

@ -293,7 +293,7 @@ static inline void synthVoice(struct SynthObject * so, int32_t * out, unsigned i
const unsigned int start_loop = wf->startLoop << FRACTSIZE;
const int diff_loop = end_loop-start_loop;
while(samples-- > 0)
while(likely(samples-- > 0))
{
/* Is voice being ramped? */
if(unlikely(so->state == STATE_RAMPDOWN))