Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / audio_coding / codecs / ilbc / smooth_out_data.c
index df3a3b7..622af7b 100644 (file)
@@ -31,13 +31,12 @@ int32_t WebRtcIlbcfix_Smooth_odata(
   int32_t errs;
 
   for(i=0;i<80;i++) {
-    odata[i]= (int16_t)WEBRTC_SPL_RSHIFT_W32(
-        (WEBRTC_SPL_MUL_16_16(C, surround[i])+1024), 11);
+    odata[i]= (int16_t)((C * surround[i] + 1024) >> 11);
   }
 
   errs=0;
   for(i=0;i<80;i++) {
-    err=(int16_t)WEBRTC_SPL_RSHIFT_W16((psseq[i]-odata[i]), 3);
+    err = (psseq[i] - odata[i]) >> 3;
     errs+=WEBRTC_SPL_MUL_16_16(err, err); /* errs in Q-6 */
   }