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

add another assert to test 0 values

parent efffa44d
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1264,7 +1264,13 @@ Word16 maximum_exp_fx( /* o : index of the maximum value

    FOR( j = 1; j < lvec_fx; j++ )
    {
#if 0
      #if 1
        if ( ( vec_fx[j] == 0 && vec_fx[j - 1] != 0 && vec_fx[j+1] != 0 && lvec_fx > j ))
        {
            assert(0);
        }
      #endif
#if 1
        if ( LT_32( L_deposit_l( vec_fx[ind] ), L_shr_sat( L_deposit_l( vec_fx[j] ), sub( exp_vec[ind], exp_vec[j] ) ) ) )
#else
        /* if(vec[j] > vec[ind])                                                                                                    //means   */