Address a build issue with Android-Clang compiler:

error: the value is truncated when put into register, use a modifier to specify the size [-Werror,-Wasm-operand-widths]
  __asm __volatile ("ssat %0, #16, %1" : "=r"(out16) : "r"(value32));
Review URL: https://webrtc-codereview.appspot.com/1029006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3352 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kma@webrtc.org 2013-01-10 00:46:37 +00:00
parent ef1a760446
commit 0af0d3d3f4

View File

@ -164,11 +164,11 @@ static __inline int WebRtcSpl_NormW16(WebRtc_Word16 a) {
// TODO(kma): add unit test.
static __inline WebRtc_Word16 WebRtcSpl_SatW32ToW16(WebRtc_Word32 value32) {
WebRtc_Word16 out16 = 0;
WebRtc_Word32 out = 0;
__asm __volatile ("ssat %0, #16, %1" : "=r"(out16) : "r"(value32));
__asm __volatile ("ssat %0, #16, %1" : "=r"(out) : "r"(value32));
return out16;
return (WebRtc_Word16)out;
}
#endif // WEBRTC_SPL_SPL_INL_ARMV7_H_