Commit 6edb20e0 authored by Arthur Tritthart's avatar Arthur Tritthart
Browse files

removed DEBUG prints incl. macros

parent 846219ef
Loading
Loading
Loading
Loading
Loading
+1 −34
Original line number Diff line number Diff line
@@ -338,9 +338,8 @@ void hp20( Word16 signal[], /* i/o: signal to filter any *
    return;
}

/* Can be moved to options.h */
#define HP20_FIX32_RECODING
//#define HP20_INCR_NEGATIVE_SMP
#define DEBUG_hp20_fx

#ifdef HP20_FIX32_RECODING
void hp20_fx_32(
@@ -462,17 +461,8 @@ void hp20_fx_32(
    W_sum = W_mac_32_32( W_sum, mem_fx[1], a1_fx ); /* y1*a1 */
    W_y2 = W_shl( W_sum, HP20_COEFF_SCALE );
    signal_fx_i = W_extract_h( W_shl( W_y2, prescale ) );
#ifdef HP20_INCR_NEGATIVE_SMP
    if ( signal_fx_i < 0 )
    {
        signal_fx_i = L_add( signal_fx_i, 1 );
    }
#endif
    signal_fx[0] = signal_fx_i;
    move32();
#ifdef DEBUG_hp20_fx
    printf( "signal_fx[%3d] = 0x%08X\n", (int) 0, signal_fx[0] );
#endif

    W_sum = W_mult_32_32( b2_fx, mem_fx[3] ); /* b2*x2 */
    W_sum = W_mac_32_32( W_sum, b1_fx, x2 );  /* b1*x1 */
@@ -482,17 +472,8 @@ void hp20_fx_32(
    W_sum = W_mac_32_32( W_sum, W_extract_h( W_y2 ), a1_fx ); /* y1*a1 */
    W_y1 = W_shl( W_sum, HP20_COEFF_SCALE );
    signal_fx_i = W_extract_h( W_shl( W_y1, prescale ) );
#ifdef HP20_INCR_NEGATIVE_SMP
    if ( signal_fx_i < 0 )
    {
        signal_fx_i = L_add( signal_fx_i, 1 );
    }
#endif
    signal_fx[1] = signal_fx_i;
    move32();
#ifdef DEBUG_hp20_fx
    printf( "signal_fx[%3d] = 0x%08X\n", (int) 1, signal_fx[1] );
#endif

    diff = sub( prescale_current_frame, prescale );
    W_y1 = W_shr( W_y1, diff );
@@ -511,17 +492,8 @@ void hp20_fx_32(
        W_y0 = W_shl( W_sum, HP20_COEFF_SCALE );

        signal_fx_i = W_extract_h( W_shl( W_y0, prescale_current_frame ) );
#ifdef HP20_INCR_NEGATIVE_SMP
        if ( signal_fx_i < 0 )
        {
            signal_fx_i = L_add( signal_fx_i, 1 );
        }
#endif
        signal_fx[i] = signal_fx_i;
        move32();
#ifdef DEBUG_hp20_fx
        printf( "signal_fx[%3d] = 0x%08X\n", (int) i, signal_fx[i] );
#endif

        x2 = x1;
        x1 = x0;
@@ -682,17 +654,12 @@ void hp20_fx_32(
        y0_fx64 = W_shr( y0_fx64, 29 );

        signal_fx_i = W_extract_l( W_shr( y0_fx64, Qmin ) );
#ifdef HP20_INCR_NEGATIVE_SMP
        if ( signal_fx_i < 0 )
        {
            signal_fx_i = L_add( signal_fx_i, 1 );
        }
#endif
        signal_fx[i] = signal_fx_i;
        move32();
#ifdef DEBUG_hp20_fx
        printf( "signal_fx[%3d] = 0x%08X\n", (int) i, signal_fx[i] );
#endif

        y2_fx64 = y1_fx64;
        y1_fx64 = y0_fx64;