/* Note, that the code below is identical for both EVS and IVAS codecs. The only differences are the replacement of i_mult_sat() which has precision issues and the addition of _sat in IVAS functions to avoid the saturation problem. Thus, it's BE for EVS test sequences and legacy implementations. */
/* Note, that the code below comes from the legacy EVS decoder but it has precision issues in i_mult_sat() and it leads to saturation issues in L_shl(). Thus, it's been fixed by adding _sat to L_shl() and round_fx() functions and replacing i_mult_sat() with round_fx_sat(). However, this might break the bit-exactness with EVS for some corner case-signals. */
FOR(;i<L_SHB_LAHEAD+10;i++)
{
temp=round_fx_sat(L_shl(L_mult(0x6666/* 0.1 in Q12 */,shl(sub(i,19),11)),1));