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:
parent
8a7c4af27c
commit
7ef2a053b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue