summaryrefslogtreecommitdiff
path: root/common_audio
diff options
context:
space:
mode:
authorkma@webrtc.org <kma@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-01-10 00:46:37 +0000
committerkma@webrtc.org <kma@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-01-10 00:46:37 +0000
commitaa1969069d33ce76da98d7583214ee6759e267ad (patch)
tree0b35dec2484ab554fac5d3216d8e4a1e83d27666 /common_audio
parent11b3eb19f84236e8416d1bd7a53a00fca9fa22e1 (diff)
downloadwebrtc-aa1969069d33ce76da98d7583214ee6759e267ad.tar.gz
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/webrtc@3352 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'common_audio')
-rw-r--r--common_audio/signal_processing/include/spl_inl_armv7.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common_audio/signal_processing/include/spl_inl_armv7.h b/common_audio/signal_processing/include/spl_inl_armv7.h
index c9bcc1c2..b8fd927f 100644
--- a/common_audio/signal_processing/include/spl_inl_armv7.h
+++ b/common_audio/signal_processing/include/spl_inl_armv7.h
@@ -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_