Loading lib_com/basop_util.c +10 −8 Original line number Diff line number Diff line Loading @@ -2577,22 +2577,24 @@ Word32 BASOP_Util_Add_Mant32Exp( Word32 tmp1, tmp2, tmp_res; Word16 scale_tmp, scale_tmp2, scale_tmp3; scale_tmp = add( s_max( exp2, exp1 ), 1 ); scale_tmp3 = sub( exp1, scale_tmp ); if ( Mant1 != 0 ) if ( Mant1 == 0 ) { Mant1 = L_shl( Mant1, scale_tmp3 ); exp1 = exp2; move16(); } scale_tmp3 = sub( exp2, scale_tmp ); if ( Mant2 != 0 ) if ( Mant2 == 0 ) { Mant2 = L_shl( Mant2, scale_tmp3 ); exp2 = exp1; move16(); } scale_tmp = add( s_max( exp2, exp1 ), 1 ); tmp1 = L_shl( Mant1, sub( exp1, scale_tmp ) ); tmp_res = L_add( Mant1, Mant2 ); tmp2 = L_shl( Mant2, sub( exp2, scale_tmp ) ); tmp_res = L_add( tmp1, tmp2 ); scale_tmp2 = norm_l( tmp_res ); tmp_res = L_shl( tmp_res, scale_tmp2 ); Loading Loading
lib_com/basop_util.c +10 −8 Original line number Diff line number Diff line Loading @@ -2577,22 +2577,24 @@ Word32 BASOP_Util_Add_Mant32Exp( Word32 tmp1, tmp2, tmp_res; Word16 scale_tmp, scale_tmp2, scale_tmp3; scale_tmp = add( s_max( exp2, exp1 ), 1 ); scale_tmp3 = sub( exp1, scale_tmp ); if ( Mant1 != 0 ) if ( Mant1 == 0 ) { Mant1 = L_shl( Mant1, scale_tmp3 ); exp1 = exp2; move16(); } scale_tmp3 = sub( exp2, scale_tmp ); if ( Mant2 != 0 ) if ( Mant2 == 0 ) { Mant2 = L_shl( Mant2, scale_tmp3 ); exp2 = exp1; move16(); } scale_tmp = add( s_max( exp2, exp1 ), 1 ); tmp1 = L_shl( Mant1, sub( exp1, scale_tmp ) ); tmp_res = L_add( Mant1, Mant2 ); tmp2 = L_shl( Mant2, sub( exp2, scale_tmp ) ); tmp_res = L_add( tmp1, tmp2 ); scale_tmp2 = norm_l( tmp_res ); tmp_res = L_shl( tmp_res, scale_tmp2 ); Loading