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

Unified Diff: third_party/opus/src/silk/float/inner_product_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/find_pred_coefs_FLP.c ('k') | third_party/opus/src/silk/float/k2a_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/inner_product_FLP.c
diff --git a/third_party/opus/src/silk/float/inner_product_FLP.c b/third_party/opus/src/silk/float/inner_product_FLP.c
index 029c012911dadd6732ff1373fba04b296e3ac69e..cdd39d24ce9418916db346ba93ad58cf0d9fc146 100644
--- a/third_party/opus/src/silk/float/inner_product_FLP.c
+++ b/third_party/opus/src/silk/float/inner_product_FLP.c
@@ -38,13 +38,12 @@ double silk_inner_product_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 += data1[ i + 0 ] * (double)data2[ i + 0 ] +
data1[ i + 1 ] * (double)data2[ i + 1 ] +
data1[ i + 2 ] * (double)data2[ i + 2 ] +
« no previous file with comments | « third_party/opus/src/silk/float/find_pred_coefs_FLP.c ('k') | third_party/opus/src/silk/float/k2a_FLP.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698