
The max value is ((2**15 - 1) + (2**15 - 1)) >> 1 == (2**16 - 2) >> 1 == 2**15 - 1 which doesn't overflow. The min value is (-2**15 + -2**15) >> 1 == -2**16 >> 1 == -2**15 which doesn't overflow. Since those two bracket all possible results, the call to WebRtcSpl_SatW32ToW16 is redundant. BUG= R=andrew@webrtc.org, bjornv@webrtc.org Review URL: https://webrtc-codereview.appspot.com/12019004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5929 4adac7df-926f-26a2-2b94-8c16560cd09d
Description
No description provided
Languages
C++
76%
C
16%
Python
2.3%
Java
2.1%
Objective-C++
1.5%
Other
1.9%