diff --git a/celt/vq.c b/celt/vq.c index b261e523d..b1ccd764b 100644 --- a/celt/vq.c +++ b/celt/vq.c @@ -707,8 +707,9 @@ opus_int32 stereo_itheta(const celt_norm *X, const celt_norm *Y, int stereo, int static void cubic_synthesis(celt_norm *X, int *iy, int N, int K, int face, int sign, opus_val32 gain) { int i; opus_val32 sum=0; - float mag; + opus_val32 mag; #ifdef FIXED_POINT + int sum_shift; int shift = IMAX(celt_ilog2(K) + celt_ilog2(N)/2 - 13, 0); #endif for (i=0;i>1; + mag = celt_rsqrt_norm32(SHL32(sum, 2*sum_shift+1)); for (i=0;i