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

Unified Diff: third_party/opus/src/silk/fixed/x86/prefilter_FIX_sse.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
Index: third_party/opus/src/silk/fixed/x86/prefilter_FIX_sse.c
diff --git a/third_party/opus/src/silk/fixed/x86/prefilter_FIX_sse.c b/third_party/opus/src/silk/fixed/x86/prefilter_FIX_sse.c
index 488a603f5dd0199b712fe41601edf3a38b00ae10..d8c9c2f55f066450829309802b81593bf558a4ed 100644
--- a/third_party/opus/src/silk/fixed/x86/prefilter_FIX_sse.c
+++ b/third_party/opus/src/silk/fixed/x86/prefilter_FIX_sse.c
@@ -107,8 +107,8 @@ void silk_warped_LPC_analysis_filter_FIX_sse4_1(
xmm_tempb = _mm_add_epi32( xmm_tempb, xmm_product2 );
xmm_tempa = _mm_add_epi32( xmm_tempa, xmm_tempb );
- sum = (coef_Q13_8 * state_8) >> 16;
- sum += (coef_Q13_9 * state_9) >> 16;
+ sum = (opus_int32)((coef_Q13_8 * state_8) >> 16);
+ sum += (opus_int32)((coef_Q13_9 * state_9) >> 16);
xmm_tempa = _mm_add_epi32( xmm_tempa, _mm_shuffle_epi32( xmm_tempa, _MM_SHUFFLE( 0, 0, 0, 2 ) ) );
sum += _mm_cvtsi128_si32( xmm_tempa);
« no previous file with comments | « third_party/opus/src/silk/fixed/warped_autocorrelation_FIX.c ('k') | third_party/opus/src/silk/float/LPC_inv_pred_gain_FLP.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698