Commit a01aa619 authored by Mohammadreza Naghibzadeh's avatar Mohammadreza Naghibzadeh
Browse files

Add one-bit headroom to determinant calculation.

parent 3306bc82
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4406,10 +4406,10 @@ static void formulate2x2MixingMatrix_fx(
#ifdef FIX_1819_EIGENVALUE_ERROR
    IF( D_fx[0] != 0 && D_fx[1] == 0 )
    {
        Word32 det_fx = L_sub( Mult_32_32( tmpRe_fx[0][0], tmpRe_fx[1][1] ),
        Word32 det_fx = L_sub( L_shr( Mult_32_32( tmpRe_fx[0][0], tmpRe_fx[1][1] ), 1 ),
                               L_add(
                                   Mult_32_32( tmpRe_fx[1][0], tmpRe_fx[1][0] ),
                                   Mult_32_32( tmpIm_fx[1][0], tmpIm_fx[1][0] ) ) );
                                   L_shr( Mult_32_32( tmpRe_fx[1][0], tmpRe_fx[1][0] ), 1 ),
                                   L_shr( Mult_32_32( tmpIm_fx[1][0], tmpIm_fx[1][0] ), 1 ) ) );
        IF( det_fx != 0 )
        {
            D_fx[1] = EPSILON_EIGENVALUE;