Commit 9e0c45fb authored by Nicolas Roussin's avatar Nicolas Roussin
Browse files

Remove abserr and relerr functions.

parent 2a684fbe
Loading
Loading
Loading
Loading
Loading
+1 −22
Original line number Diff line number Diff line
@@ -1379,27 +1379,6 @@ static Word64 Mpy_64_32( Word64 W_var1, Word32 L_var2 )

#ifdef NONBE_2157_ACCURACY_ANALYSIS
#include "string.h"

static double abserr( double computed, double expected );
static double relerr( double computed, double expected );

static double abserr( double computed, double expected )
{
    return fabs( computed - expected );
}

static double relerr( double computed, double expected )
{
    if ( expected == 0.0 && computed == 0.0 )
    {
        return 0.0;
    }
    else
    {
        return abserr( computed, expected ) / fabs( expected );
    }
}

#define NONBE_2157_USE_CURRENT_VERSION
#endif
#else
@@ -1998,7 +1977,7 @@ static void ivas_dirac_dec_binaural_formulate_input_covariance_matrices_fx(
    }


#ifdef NONBE_2157_ACCURACY_ANALYSIS
#if 0
    static int frame_number = 0;
    printf( "Frame %d analysis\n", frame_number );
    {