Skip to content

Commit

Permalink
Help branch prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Dec 26, 2018
1 parent 2239dc3 commit 76065c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/MixHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ bool sanitize( sampleFrame * src, int frames )
{
for( int c = 0; c < 2; ++c )
{
if( isinff( src[f][c] ) || isnanf( src[f][c] ) )
if( unlikely( isinff( src[f][c] ) || isnanf( src[f][c] ) ) )
{
#ifdef LMMS_DEBUG
printf("Bad data, clearing buffer. frame: ");
Expand Down

0 comments on commit 76065c0

Please sign in to comment.