Commit 1ab52b64 authored by Arash Azizi's avatar Arash Azizi
Browse files

issue: 2457 checking if one can remove too many calculation without damaging performance

parent 0491b1ac
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -3581,13 +3581,13 @@ void generate_comfort_noise_dec_hf_ivas_fx(
        assert( ( ( cngNoiseLevelExp + CLDFBinvScalingFactor_EXP + 1 - 1 ) & 1 ) == 0 );

        FOR( j = hFdCngCom->numCoreBands; j < hFdCngCom->regularStopBand; j++ )
        {
            FOR( i = 0; i < hFdCngCom->numSlots; i++ )
        {
            /* scaleCLDFB:  CLDFBinvScalingFactor_EXP + 1 */
            s = 0;
            move16();
            sqrtNoiseLevel = Sqrt32(L_shr(Mpy_32_16_1(*ptr_level, scaleCLDFB), sn), &s); /*Q31 - s*/
            FOR( i = 0; i < hFdCngCom->numSlots; i++ )
            {

                IF( cng_coh_flag )
                {