Commit 7ebc0b78 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

lib_com/lsf_tools_fx.c : restore shl_o in E_LPC_f_lsp_pol_get()

parent 1ac3a22a
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -989,20 +989,7 @@ Word16 E_LPC_f_lsp_pol_get( const Word16 lsp[], Word32 f[], const Word16 n, cons
    /*b = -2.0f * *plsp;*/
    b = *plsp;
    move16();
#ifdef ISSUE_1796_replace_shl_o
    m2 = shl_sat( -2, sub( 15, Q_out ) );

    /* There's only 1 integer to solve -32768 = -2 * 2^y, y = 14 .
     * so we can assume a saturated overflow, if -2 * 2^y = -32768 and y is not 14.
     */
    test();
    IF( m2 == MIN_16 && Q_out != 1 )
    {
        Overflow = 1;
    }
#else
    m2 = shl_o( -2, sub( 15, Q_out ), &Overflow );
#endif
    f[1] = L_mult_o( b, m2, &Overflow );
    move32();