Commit 73859be2 authored by Arthur Tritthart's avatar Arthur Tritthart Committed by Sandesh Venkatesh
Browse files

corrected use of exponents of cov_buf matrices

parent ea5245e5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -328,7 +328,7 @@ static void ivas_compute_smooth_cov_fx(
        FOR( i = 0; i < num_ch; i++ )
        {
#ifdef DEBUG_ivas_compute_smooth_cov_fx
            Word16 cov_buf_e = sub( Q31, q_cov[i][i] );
            cov_buf_e = sub( Q31, q_cov[i][i] );
#endif
            FOR( k = start_band; k < end_band; k++ )
            {
@@ -336,7 +336,7 @@ static void ivas_compute_smooth_cov_fx(
#ifdef DEBUG_ivas_compute_smooth_cov_fx
                Word32 L_buf = pCov_buf[i][i][k]; /* debug !! */
#endif
                pCov_buf[i][i][k] = BASOP_Util_Add_Mant32Exp( pCov_buf[i][i][k], cov_buf_e, Mpy_32_32( hCovState->pSmoothing_factor_fx[k], fac ), fac_e, &cov_buf_e );
                pCov_buf[i][i][k] = BASOP_Util_Add_Mant32Exp( pCov_buf[i][i][k], sub(Q31, q_cov[i][i]), Mpy_32_32( hCovState->pSmoothing_factor_fx[k], fac ), fac_e, &cov_buf_e );
                move32();
                hCovState->q_cov_real_per_band[i][i][k] = sub( Q31, cov_buf_e );
                move16();