Commit 8e294c8e authored by TYAGIRIS's avatar TYAGIRIS
Browse files

add missing loop line

parent 9295a71d
Loading
Loading
Loading
Loading
Loading
+24 −8
Original line number Diff line number Diff line
@@ -4289,6 +4289,11 @@ void ivas_get_spar_md_from_dirac_enc_fx(
                    }

                    /*normalize 1st order*/
#if 0 // def NONBE_FIX_1748_SPAR_DIV_OPT
                    Word16 norm_t = L_norm_arr( &response_avg_fx[1], foa_ch - 1 );
                    norm_t = norm_t - 1;
                    scale_sig32( &response_avg_fx[1], foa_ch - 1, norm_t );
#endif
                    norm_fx = 0;
                    move32();
                    norm_q = 0;
@@ -4327,12 +4332,15 @@ void ivas_get_spar_md_from_dirac_enc_fx(
                        }
                    }
                    ELSE
                    {
                        FOR( ch = 1; ch < foa_ch; ch++ )
                        {
                            response_avg_fx[ch] = divide3232( response_avg_fx[ch], L_max( norm_fx, response_avg_fx[ch] ) ); // q15
                            move32();
                            response_avg_fx[ch] = L_shl( response_avg_fx[ch], 15 ); // q30
                            move32();
                        }
                    }
#else
                    FOR( ch = 1; ch < foa_ch; ch++ )
                    {
@@ -4878,6 +4886,11 @@ void ivas_get_spar_md_from_dirac_fx(
                    }

                    /*normalize 1st order*/
#if 0 // def NONBE_FIX_1748_SPAR_DIV_OPT
                    Word16 norm_t = L_norm_arr( &response_avg_fx[1], foa_ch - 1 );
                    norm_t = norm_t - 1;
                    scale_sig32( &response_avg_fx[1], foa_ch - 1, norm_t );
#endif
                    norm_fx = 0;
                    move32();
                    norm_q = 0;
@@ -4916,12 +4929,15 @@ void ivas_get_spar_md_from_dirac_fx(
                        }
                    }
                    ELSE
                    {
                        FOR( ch = 1; ch < foa_ch; ch++ )
                        {
                            response_avg_fx[ch] = divide3232( response_avg_fx[ch], L_max( norm_fx, response_avg_fx[ch] ) ); // q15
                            move32();
                            response_avg_fx[ch] = L_shl( response_avg_fx[ch], 15 ); // q30
                            move32();
                        }
                    }
#else
                    FOR( ch = 1; ch < foa_ch; ch++ )
                    {