summaryrefslogtreecommitdiff
path: root/thirdparty/opus/silk/lin2log.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/opus/silk/lin2log.c')
-rw-r--r--thirdparty/opus/silk/lin2log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/opus/silk/lin2log.c b/thirdparty/opus/silk/lin2log.c
index d4fe515321..0d5155aa86 100644
--- a/thirdparty/opus/silk/lin2log.c
+++ b/thirdparty/opus/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 );
}