error_nrg=Mpy_32_16_1(error_nrg,6553/* 0.2f in Q15 */);/* Division by 5 for average value */
bpf_error_ratio=LT_32((L_shr(error_nrg,1)),res_hb_nrg)?(Word16)(L_shl((L_shl(error_nrg,Q5)/res_hb_nrg),Q7)):shl(ONE_IN_Q12,1);/* Form decision variable and apply limit */
bpf_error_ratio=LT_32((L_shr(error_nrg,1)),res_hb_nrg)?(Word16)(L_shl((L_shl(error_nrg,Q5)/res_hb_nrg),Q8)):shl(ONE_IN_Q12,1);/* Form decision variable and apply limit */