Commit 52901fd5 authored by thomas dettbarn's avatar thomas dettbarn
Browse files

added a floattofx() function to highlight the issue.

parent 6ac73b9f
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -56,6 +56,11 @@

#ifdef	FLOATCODE

float fxtofloat(Word32 fx, Word16 e)
{
	return (float)fx/(float)((Word64)1<<(e+2));
}

void floattofx(float x,Word32* fx,Word16 *e)
{
	float y;
@@ -64,7 +69,7 @@ void floattofx(float x,Word32* fx,Word16 *e)


	*fx=0;
	*e=0;
	*e=10;

	if (x==0) return;	

@@ -1069,7 +1074,7 @@ static void HouseholderReduction_fx(
    {
        FOR( iCh = 0; iCh < nChannelsC; iCh++ )
        {
            singularVectors_float[jCh][iCh] = (float)singularVectors_Left_fx[jCh][iCh]/(float)((Word64)1<<(singularVectors_Left_e+2));
            singularVectors_float[jCh][iCh] = fxtofloat(singularVectors_Left_fx[jCh][iCh],singularVectors_Left_e);
        }
    }
	g_left=0;