diff options
Diffstat (limited to 'media/libopus/silk/float/energy_FLP.c')
-rw-r--r-- | media/libopus/silk/float/energy_FLP.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/media/libopus/silk/float/energy_FLP.c b/media/libopus/silk/float/energy_FLP.c index 24b8179f9e..7bc7173c9c 100644 --- a/media/libopus/silk/float/energy_FLP.c +++ b/media/libopus/silk/float/energy_FLP.c @@ -37,13 +37,12 @@ double silk_energy_FLP( opus_int dataSize ) { - opus_int i, dataSize4; + opus_int i; double result; /* 4x unrolled loop */ result = 0.0; - dataSize4 = dataSize & 0xFFFC; - for( i = 0; i < dataSize4; i += 4 ) { + for( i = 0; i < dataSize - 3; i += 4 ) { result += data[ i + 0 ] * (double)data[ i + 0 ] + data[ i + 1 ] * (double)data[ i + 1 ] + data[ i + 2 ] * (double)data[ i + 2 ] + |