Commit b7bce2cf authored by multrus's avatar multrus
Browse files

float issue 1582: Remove unncessary statement from stereo_dft_quantize_itd()

parent 3c80a6ef
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -163,6 +163,7 @@
#define NONBE_1122_KEEP_EVS_MODE_UNCHANGED              /* FhG: Disables fix for issue 1122 in EVS mode to keep BE tests green. This switch should be removed once the 1122 fix is added to EVS via a CR.  */
#define FIX_FLOAT_1539_G192_FORMAT_SWITCH               /* Nokia: reintroduce format switching for g192 bitstreams */
#define FIX_FLOAT_1560_SVD_NO_OPT_MAX_W_SIGN            /* FhG: float issue 1560: Avoid optimizing the division on the result of maxWithSign() with -funsafe-math-optimizations */
#define FIX_FLOAT_1582_STEREO_DFT_QUANTIZE_ITD          /* FhG: float issue 1582: Remove unncessary statement from stereo_dft_quantize_itd() */

/* #################### End BE switches ################################## */

+4 −0
Original line number Diff line number Diff line
@@ -152,7 +152,11 @@ static void stereo_dft_quantize_itd(
{
    int16_t itd;

#ifdef FIX_FLOAT_1582_STEREO_DFT_QUANTIZE_ITD
    itd = in;
#else
    itd = (int16_t) ( sign( in ) * 0.5f + in );
#endif

    /*Limit ITD*/
    if ( ( ABSVAL( itd ) > STEREO_DFT_ITD_MAX ) || ( ABSVAL( itd ) < STEREO_DFT_ITD_MIN ) )