common_audio: Removed macro WEBRTC_SPL_LSHIFT_W16
The macro was a trivial << operation and where used has been replaced by <<. Affected components are * ilbc * isacfix BUG=3348,3353 TESTED=locally on linux and trybots R=henrik.lundin@webrtc.org, kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/22919005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7404 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -71,7 +71,7 @@ void WebRtcIlbcfix_Lsp2Lsf(
|
||||
tmp = (int16_t)WEBRTC_SPL_MUL_16_16_RSFT(WebRtcIlbcfix_kAcosDerivative[k],diff, 11);
|
||||
|
||||
/* freq in Q16 */
|
||||
freq = (int16_t)WEBRTC_SPL_LSHIFT_W16(k,9)+tmp;
|
||||
freq = (k << 9) + tmp;
|
||||
|
||||
/* lsf = freq*2*pi */
|
||||
(*lsfPtr) = (int16_t)(((int32_t)freq*25736)>>15);
|
||||
|
||||
@ -117,7 +117,7 @@ void WebRtcIlbcfix_Poly2Lsp(
|
||||
sign = y;
|
||||
y = WEBRTC_SPL_ABS_W16(y);
|
||||
shifts = (int16_t)WebRtcSpl_NormW32(y)-16;
|
||||
y = WEBRTC_SPL_LSHIFT_W16(y, shifts);
|
||||
y <<= shifts;
|
||||
y = (int16_t)WebRtcSpl_DivW32W16(536838144, y); /* 1/(yhigh-ylow) */
|
||||
|
||||
tmpW32 = WEBRTC_SPL_MUL_16_16_RSFT(x, y, (19-shifts));
|
||||
|
||||
Reference in New Issue
Block a user