Commit 6392419a authored by Arash Azizi's avatar Arash Azizi
Browse files

Issue 2551: striving for minimal and possible invasive changes

parent a5fb07b1
Loading
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -1395,16 +1395,9 @@ void tcx_scalar_quantization_fx(
    /* common exponent for x and gain for comparison */
    tmp16 = sub( gain_e, x_e );
#ifndef FIX_BASOP_2551_HARM_SCALAR_QUAN

    tmp32 = L_shl_sat(L_deposit_h(gain), tmp16); // exp:x_e
#else
    if ( EQ_16( element_mode, EVS_MONO ) )
    {
    tmp32 = L_shl( L_deposit_h( gain ), s_max( -31, s_min( tmp16, 0 ) ) );
    }
    else
    {
        tmp32 = L_shl_sat( L_deposit_h( gain ), tmp16 ); // exp:x_e
    }
#endif // !FIX_BASOP_2551_HARM_SCALAR_QUAN