Refactor audio_coding/ilbc: removes usage of macro WEBRTC_SPL_LSHIFT_W32
The macro is defined as #define WEBRTC_SPL_LSHIFT_W32(a, b) ((a) << (b)) It is a trivial operation that need no macro. In fact it may be confusing for to the user, since it can be interpreted as having an implicit cast to int32_t. Also removes unnecessary casts to int32_t from int16_t. BUG=3348,3353 TESTED=locally on linux and trybots R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/48519004 Cr-Commit-Position: refs/heads/master@{#8800} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8800 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -48,7 +48,7 @@ int16_t WebRtcIlbcfix_GainQuant( /* (o) quantized gain value */
|
||||
|
||||
/* Multiply the gain with 2^14 to make the comparison
|
||||
easier and with higher precision */
|
||||
gainW32 = WEBRTC_SPL_LSHIFT_W32((int32_t)gain, 14);
|
||||
gainW32 = gain << 14;
|
||||
|
||||
/* Do a binary search, starting in the middle of the CB
|
||||
loc - defines the current position in the table
|
||||
|
||||
Reference in New Issue
Block a user