Commit 34b7b89a authored by Fabian Bauer's avatar Fabian Bauer
Browse files

change formula to GT

parent 02c7c4e5
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -2169,7 +2169,9 @@ Word16 maximum_exp_fx(

    FOR( j = 1; j < lvec_fx; j++ )
    {

        Word16 tmp = sub( exp_vec[j], exp_vec[ind] );
        #if 1
        if ( vec_fx[j] == 0 )
        {
            tmp = 0;
@@ -2180,10 +2182,10 @@ Word16 maximum_exp_fx(
            tmp = 0;
            move16();
        }

        /* if(vec[j] > vec[ind])                                                                                                    //means   */
        /* if( GT_32(    L_shr_sat( L_deposit_l( vec_fx[j])), sub( exp_vec[ind], exp_vec[j] )  , L_deposit_l( vec_fx[ind] )))   //is like */
        if ( L_mac0_sat( L_shl_sat( L_deposit_l( vec_fx[j] ), tmp ), vec_fx[ind], -0x0001 ) > 0 )
        #endif
        /* if(vec[j] > vec[ind])                                                                    */
        /* if ( L_mac0_sat( L_shl_sat( L_deposit_l( vec_fx[j] ), tmp ), vec_fx[ind], -0x0001 ) > 0 ) */
        if( GT_32(    L_shr_sat( L_deposit_l( vec_fx[j])), sub( exp_vec[ind], exp_vec[j] )  , L_deposit_l( vec_fx[ind] )))
        {
            ind = j;
            move16();