common_audio/signal_processing: Removed macro WEBRTC_SPL_SUB_SAT_W16
Macro was only mapping a function used in one place. BUG=3348 TESTED=trybots, unittests R=tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/17499004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6180 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
d83d607271
commit
1b21a57902
@ -114,7 +114,6 @@
|
|||||||
|
|
||||||
#define WEBRTC_SPL_SUB_SAT_W32(a, b) WebRtcSpl_SubSatW32(a, b)
|
#define WEBRTC_SPL_SUB_SAT_W32(a, b) WebRtcSpl_SubSatW32(a, b)
|
||||||
#define WEBRTC_SPL_ADD_SAT_W16(a, b) WebRtcSpl_AddSatW16(a, b)
|
#define WEBRTC_SPL_ADD_SAT_W16(a, b) WebRtcSpl_AddSatW16(a, b)
|
||||||
#define WEBRTC_SPL_SUB_SAT_W16(a, b) WebRtcSpl_SubSatW16(a, b)
|
|
||||||
|
|
||||||
// Shifting with negative numbers allowed
|
// Shifting with negative numbers allowed
|
||||||
// Positive means left shift
|
// Positive means left shift
|
||||||
|
@ -78,7 +78,6 @@ TEST_F(SplTest, MacroTest) {
|
|||||||
|
|
||||||
EXPECT_EQ(16386, WEBRTC_SPL_SUB_SAT_W32(a, b));
|
EXPECT_EQ(16386, WEBRTC_SPL_SUB_SAT_W32(a, b));
|
||||||
EXPECT_EQ(16380, WEBRTC_SPL_ADD_SAT_W16(a, b));
|
EXPECT_EQ(16380, WEBRTC_SPL_ADD_SAT_W16(a, b));
|
||||||
EXPECT_EQ(16386, WEBRTC_SPL_SUB_SAT_W16(a, b));
|
|
||||||
|
|
||||||
// Shifting with negative numbers allowed
|
// Shifting with negative numbers allowed
|
||||||
int shift_amount = 1; // Workaround compiler warning using variable here.
|
int shift_amount = 1; // Workaround compiler warning using variable here.
|
||||||
|
@ -326,7 +326,7 @@ int16_t WebRtcIsacfix_DecodePlcImpl(int16_t *signal_out16,
|
|||||||
for( k = 0; k < lag0; k++ )
|
for( k = 0; k < lag0; k++ )
|
||||||
{
|
{
|
||||||
corr = WEBRTC_SPL_ADD_SAT_W32( corr, WEBRTC_SPL_ABS_W32(
|
corr = WEBRTC_SPL_ADD_SAT_W32( corr, WEBRTC_SPL_ABS_W32(
|
||||||
WEBRTC_SPL_SUB_SAT_W16(
|
WebRtcSpl_SubSatW16(
|
||||||
(ISACdec_obj->plcstr_obj).lastPitchLP[k],
|
(ISACdec_obj->plcstr_obj).lastPitchLP[k],
|
||||||
(ISACdec_obj->plcstr_obj).prevPitchInvIn[
|
(ISACdec_obj->plcstr_obj).prevPitchInvIn[
|
||||||
FRAMESAMPLES_HALF - 2*lag0 - 10 + i + k ] ) ) );
|
FRAMESAMPLES_HALF - 2*lag0 - 10 + i + k ] ) ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user