commit | 78ea06dd34a584acad4a2cf2142de218cb06eef4 | [log] [tgz] |
---|---|---|
author | bjornv@webrtc.org <bjornv@webrtc.org> | Tue Oct 21 07:17:24 2014 +0000 |
committer | bjornv@webrtc.org <bjornv@webrtc.org> | Tue Oct 21 07:17:24 2014 +0000 |
tree | 221c17de9bb2940ee37c426183b300e0e9698943 | |
parent | 913f7b8d5eae7a234fd8c0a26c90dc71fbea9133 [diff] [blame] |
audio_coding/codecs/ilbc: Replaced macro WEBRTC_SPL_RSHIFT_W32 with >> Removed usage of trivial macro. BUG=3348,3353 TESTED=locally on linux and trybots R=henrik.lundin@webrtc.org, kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/29789004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7480 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/interpolate.c b/webrtc/modules/audio_coding/codecs/ilbc/interpolate.c index b6ea201..d0869a5 100644 --- a/webrtc/modules/audio_coding/codecs/ilbc/interpolate.c +++ b/webrtc/modules/audio_coding/codecs/ilbc/interpolate.c
@@ -39,9 +39,7 @@ invcoef = 16384 - coef; /* 16384 = 1.0 (Q14)*/ for (i = 0; i < length; i++) { - out[i] = (int16_t) WEBRTC_SPL_RSHIFT_W32( - (WEBRTC_SPL_MUL_16_16(coef, in1[i]) + WEBRTC_SPL_MUL_16_16(invcoef, in2[i]))+8192, - 14); + out[i] = (int16_t)((coef * in1[i] + invcoef * in2[i] + 8192) >> 14); } return;