Commit 1358b843 authored by multrus's avatar multrus
Browse files

increase precision of the return value from maxWithSign() from float to double

parent 18ebab01
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ static void ApplyQRTransform( float singularVectors_Left[][MAX_OUTPUT_CHANNELS],

static void ApplyRotation( float singularVector[][MAX_OUTPUT_CHANNELS], const float c, const float s, float x11, float x12, float *f, float *g, const int16_t currentIndex1, const int16_t currentIndex2, const int16_t nChannels );

static float maxWithSign( const float a );
static double maxWithSign( const float a );

static void flushToZeroArray( float arr[MAX_OUTPUT_CHANNELS], const int16_t length );

@@ -810,7 +810,7 @@ static float GivensRotation(
 *
 *-------------------------------------------------------------------------*/

static float maxWithSign(
static double maxWithSign(
    const float a )
{
    if ( fabsf( a ) > SVD_MINIMUM_VALUE )