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

Unified Diff: third_party/opus/src/silk/lin2log.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/init_decoder.c ('k') | third_party/opus/src/silk/macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/src/silk/lin2log.c
diff --git a/third_party/opus/src/silk/lin2log.c b/third_party/opus/src/silk/lin2log.c
index d4fe515321f0d5b76d6d314ccff4d16f93f91838..0d5155aa86e4d67630c541d68fa7a5e1bf400bce 100644
--- a/third_party/opus/src/silk/lin2log.c
+++ b/third_party/opus/src/silk/lin2log.c
@@ -41,6 +41,6 @@ opus_int32 silk_lin2log(
silk_CLZ_FRAC( inLin, &lz, &frac_Q7 );
/* Piece-wise parabolic approximation */
- return silk_LSHIFT( 31 - lz, 7 ) + silk_SMLAWB( frac_Q7, silk_MUL( frac_Q7, 128 - frac_Q7 ), 179 );
+ return silk_ADD_LSHIFT32( silk_SMLAWB( frac_Q7, silk_MUL( frac_Q7, 128 - frac_Q7 ), 179 ), 31 - lz, 7 );
}
« no previous file with comments | « third_party/opus/src/silk/init_decoder.c ('k') | third_party/opus/src/silk/macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698