prev_scale_factor=L_shr(prev_scale,sub(sc_factor,1)/*Q30 -> Q31*/);/* Since the sc_factor is the log2 of sc_factor in float, we apply it using L_shr */
}
test();
IF(prev_scale<=0||cond)/* Since the sc_factor is the log2 of sc_factor in float, we apply it using L_shr */
sc_factor=s_max(sub(12,norm_s(add(sub(j,length_half),1))),0);/* allowed intra frame jump is smaller */
sc_factor=s_max(sc_factor,1);/* Note: The sc_factor is the log2 of the sc_factor in the float code to simplify condition below */
if(GT_32(L_shr(prev_scale,sub(sc_factor,1)/*Q30 -> Q31*/),scale/*Q31*/))/* Since the sc_factor is the log2 of sc_factor in float, we apply it using L_shr */
{
cond=1;
move16();
}
prev_scale_factor=L_shr(prev_scale,sub(sc_factor,1)/*Q30 -> Q31*/);/* Since the sc_factor is the log2 of sc_factor in float, we apply it using L_shr */