Commit db742001 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

fix diffs

parent aac60a59
Loading
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -2575,7 +2575,7 @@ Word32 BASOP_Util_Add_Mant32Exp(
{

    Word32 tmp1, tmp2, tmp_res;
    Word16 scale_tmp, scale_tmp2;
    Word16 scale_tmp, scale_tmp2, scale_tmp3;


    if ( Mant1 == 0 )
@@ -2592,15 +2592,22 @@ Word32 BASOP_Util_Add_Mant32Exp(

    scale_tmp = add( s_max( exp2, exp1 ), 1 );
    tmp1 = L_shl( Mant1, sub( exp1, scale_tmp ) );
    tmp2 = L_shl( Mant2, sub( exp2, scale_tmp ) );

    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 );

    scale_tmp3 = 0;
    move16();

    if ( tmp_res != 0 )
    {
        scale_tmp3 = sub( scale_tmp, scale_tmp2 );
    }

    *exp_res = sub( scale_tmp, scale_tmp2 );
    *exp_res = scale_tmp3;
    move16();

    return tmp_res;