avutil/fixed_dsp: Use av_clip_int16() instead of the non optimized av_clip_int16_c()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Feb 2015 23:22:46 +0000 (00:22 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Feb 2015 23:43:32 +0000 (00:43 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/fixed_dsp.c

index b99fea5..102a951 100644 (file)
@@ -63,8 +63,8 @@ static void vector_fmul_window_fixed_scaled_c(int16_t *dst, const int32_t *src0,
         s1 = src1[j];
         wi = win[i];
         wj = win[j];
-        dst[i] = av_clip_int16_c(((((int64_t)s0*wj - (int64_t)s1*wi + 0x40000000) >> 31) + round) >> bits);
-        dst[j] = av_clip_int16_c(((((int64_t)s0*wi + (int64_t)s1*wj + 0x40000000) >> 31) + round) >> bits);
+        dst[i] = av_clip_int16(((((int64_t)s0*wj - (int64_t)s1*wi + 0x40000000) >> 31) + round) >> bits);
+        dst[j] = av_clip_int16(((((int64_t)s0*wi + (int64_t)s1*wj + 0x40000000) >> 31) + round) >> bits);
     }
 }