Commit 6205f1d8 authored by Arash Azizi's avatar Arash Azizi
Browse files

Issue 2551: actualizing change that was verified using commit 1a90f1b7

parent 1a90f1b7
Loading
Loading
Loading
Loading
+0 −29
Original line number Diff line number Diff line
@@ -1405,8 +1405,6 @@ void tcx_scalar_quantization_fx(
    tmp16 = negate( s_max( tmp16, 0 ) );
#endif // FIX_BASOP_2551_HARM_SCALAR_QUAN
    i = sub( L_frame, 1 );
#ifdef FIX_BASOP_2551_HARM_SCALAR_QUAN

    IF( memQuantZeros_fx != NULL )
    {
        test();
@@ -1418,33 +1416,6 @@ void tcx_scalar_quantization_fx(
        }
    }

#else
    if ( EQ_16( element_mode, EVS_MONO ) )
    {
        test();
        WHILE( ( memQuantZeros_fx[i] != 0 ) && ( LT_32( L_abs( L_shl( x[i], tmp16 ) ), tmp32 ) ) )
        {
            test();
            xq[i] = 0;
            move16();
            i = sub( i, 1 );
        }
    }
    else
    {
        IF( memQuantZeros_fx != NULL )
        {
            test();
            FOR( ; ( ( memQuantZeros_fx[i] != 0 ) && ( L_abs( x[i] ) < tmp32 ) ); i-- )
            {
                test();
                xq[i] = 0;
                move16();
            }
        }
    }
#endif // !FIX_BASOP_2551_HARM_SCALAR_QUAN

    /* invert gain */
    gain = Inv16( gain, &gain_e );