Commit df97c617 authored by Arthur Tritthart's avatar Arthur Tritthart
Browse files

fixed issue 1744 (mr 1778) with exponent setting for divide3232

parent 0ee162a3
Loading
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -661,8 +661,7 @@ static Word16 ivas_dirac_get_mono_flag_fx(
                    move16();
                }
#ifdef FIX_ISSUE_1744_IVAS_DIRAC_GET_MONO_FLAG
                IF( BASOP_Util_Cmp_Mant32Exp( W_band_power, 31 - 16, Mpy_32_32( other_ch_band_power, threshold ), threshold_e ) == 1 )
                /* -16 is needed because divide3232() returned a 16-Bit value, and this 16-bit value was passed to an 32-bit mantissa argument*/
                IF( BASOP_Util_Cmp_Mant32Exp( W_band_power, W_band_power_e, Mpy_32_32( other_ch_band_power, threshold ), other_ch_band_power_e + threshold_e ) == 1 )
                {
                    any_mono_band = 1;
                    move16();
@@ -673,7 +672,7 @@ static Word16 ivas_dirac_get_mono_flag_fx(
                    move16();
                }
#else
                IF( BASOP_Util_Cmp_Mant32Exp( divide3232( W_band_power, other_ch_band_power ), 31, threshold, threshold_e ) == 1 )
                IF( BASOP_Util_Cmp_Mant32Exp( divide3232( W_band_power, other_ch_band_power ), 31, threshold, threshold_e ) == 0 )
                {
                    any_mono_band = 1;
                    move16();