Refactor audio_coding/isac: removed 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. BUG=3348,3353 TESTED=locally on linux and trybots R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/44659004 Cr-Commit-Position: refs/heads/master@{#8801} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8801 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -128,7 +128,7 @@ static void FindInvArSpec(const int16_t* ARCoefQ12,
|
||||
sum >>= 15;
|
||||
CorrQ11[k] = (sum * tmpGain + round) >> shftVal;
|
||||
}
|
||||
sum = WEBRTC_SPL_LSHIFT_W32(CorrQ11[0], 7);
|
||||
sum = CorrQ11[0] << 7;
|
||||
for (n = 0; n < FRAMESAMPLES / 8; n++) {
|
||||
CurveQ16[n] = sum;
|
||||
}
|
||||
@ -163,8 +163,8 @@ static void FindInvArSpec(const int16_t* ARCoefQ12,
|
||||
|
||||
for (k = 0; k < FRAMESAMPLES / 8; k++) {
|
||||
CurveQ16[FRAMESAMPLES_QUARTER - 1 - k] = CurveQ16[k] -
|
||||
WEBRTC_SPL_LSHIFT_W32(diffQ16[k], shftVal);
|
||||
CurveQ16[k] += WEBRTC_SPL_LSHIFT_W32(diffQ16[k], shftVal);
|
||||
(diffQ16[k] << shftVal);
|
||||
CurveQ16[k] += diffQ16[k] << shftVal;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user