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

Revert "faster"

This reverts commit 48c88257.
parent 692cdb86
Loading
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -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 );