Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: third_party/opus/src/silk/float/energy_FLP.c

Issue 2962373002: [Opus] Update to v1.2.1 (Closed)
Patch Set: Pre-increment instead of post-increment Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/opus/src/silk/float/encode_frame_FLP.c ('k') | third_party/opus/src/silk/float/find_LPC_FLP.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/src/silk/float/energy_FLP.c
diff --git a/third_party/opus/src/silk/float/energy_FLP.c b/third_party/opus/src/silk/float/energy_FLP.c
index 24b8179f9e3b4f3c88e992cf9fd81a4d90294c76..7bc7173c9cf3f46699e89cd13db3b277ade6606a 100644
--- a/third_party/opus/src/silk/float/energy_FLP.c
+++ b/third_party/opus/src/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 ] +
« no previous file with comments | « third_party/opus/src/silk/float/encode_frame_FLP.c ('k') | third_party/opus/src/silk/float/find_LPC_FLP.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698