Loading lib_enc/swb_bwe_enc_lr_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ static Word16 GetSubbandCorrIndex2_har_fx( /* o : x has to be MAX_32 and y has to be 0 So, a saturated overflow has occured if the result is MAX_32 and y is != 0 THe case MIN_32 with negative x is not valid since x is calculated by square */ Overflow = ( ( L_corr_sq == MAX_32 ) && ( exp_norm != 0 ) ) ? 1 : 0; Overflow = ( ( L_corr_sq == MAX_32 ) && ( exp_norm < 0 ) ) ? 1 : 0; #else L_corr_sq = L_shr_o( L_corr_sq, s_min( shl( exp_norm, 1 ), 31 ), &Overflow ); /* (QCorr-16)*2+1 */ #endif Loading Loading
lib_enc/swb_bwe_enc_lr_fx.c +1 −1 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ static Word16 GetSubbandCorrIndex2_har_fx( /* o : x has to be MAX_32 and y has to be 0 So, a saturated overflow has occured if the result is MAX_32 and y is != 0 THe case MIN_32 with negative x is not valid since x is calculated by square */ Overflow = ( ( L_corr_sq == MAX_32 ) && ( exp_norm != 0 ) ) ? 1 : 0; Overflow = ( ( L_corr_sq == MAX_32 ) && ( exp_norm < 0 ) ) ? 1 : 0; #else L_corr_sq = L_shr_o( L_corr_sq, s_min( shl( exp_norm, 1 ), 31 ), &Overflow ); /* (QCorr-16)*2+1 */ #endif Loading