diff --git a/lib_com/options.h b/lib_com/options.h old mode 100644 new mode 100755 index d1b3cb63e4f0e20bafe9f31d1fd8e41adc6fc06b..9866f97dc889a9a04edbb2d7aafab02af720ec29 --- a/lib_com/options.h +++ b/lib_com/options.h @@ -110,5 +110,6 @@ #define ISSUE_1772_replace_shr_o /* FhG: replace by non-overflow-alternative - BE */ #define FIX_1735_W_SHL_SAT_L /* FhG: Usage of W_shl_sat_l() */ +#define FIX_1695_UNNECESSARY_IF_CONDITION /*FhG: remove unnecessary code*/ #endif diff --git a/lib_rend/ivas_dirac_output_synthesis_dec_fx.c b/lib_rend/ivas_dirac_output_synthesis_dec_fx.c index a0fa343a275ee97ed086d36671d4470ce020a593..915d4f3e03590f0319ca82c2d1fdd083aa61c74b 100644 --- a/lib_rend/ivas_dirac_output_synthesis_dec_fx.c +++ b/lib_rend/ivas_dirac_output_synthesis_dec_fx.c @@ -2490,6 +2490,7 @@ void ivas_dirac_dec_output_synthesis_process_subframe_psd_ls_fx( #else assert( h_dirac_output_synthesis_state->proto_power_smooth_prev_q == h_dirac_output_synthesis_state->proto_power_smooth_q ); #endif +#ifndef FIX_1696_UNNECESSARY_IF_CONDITION IF( EQ_32( *( p_power_smooth_prev ), EPSILON_FX ) ) { p_power_smooth_prev++; @@ -2502,13 +2503,16 @@ void ivas_dirac_dec_output_synthesis_process_subframe_psd_ls_fx( } ELSE { +#endif L_tmp = BASOP_Util_Divide3232_Scale_newton( ONE_IN_Q31, *( p_power_smooth_prev++ ), &exp ); /*Q=31-(exp-(31-q_proto_power_smooth))*/ exp_arr[k * num_freq_bands + l] = exp; move16(); *( p_power_smooth++ ) = L_tmp; /*Q=31-(exp-(31-q_proto_power_smooth))*/ move32(); +#ifndef FIX_1696_UNNECESSARY_IF_CONDITION } +#endif } }