Commit d11024a3 authored by vaillancour's avatar vaillancour
Browse files

Fix for 9600 32

parent af42b1ba
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -432,7 +432,9 @@ Word16 gain_enc_uv( /* o : quantization pitch index
    Word16 s, tmp1, s1;
    Word16 index2;
    const Word16 log2_scale=16;

#ifdef BASOP_NOGLOB
    Flag Overflow = 0;
#endif 
    pred_nrg_frame = 0;     /* to suppress compilation warnings */
    g_code2 = 0;            /* to suppress compilation warnings */
    exp_gcode2 = 0;         /* to suppress compilation warnings */
@@ -581,7 +583,11 @@ Word16 gain_enc_uv( /* o : quantization pitch index
        }

        s1 = norm_l(*gain_code);
#ifdef BASOP_NOGLOB
        tmp1 = round_fx_o(L_shl_o(*gain_code, s1, &Overflow), &Overflow);
#else
        tmp1 = round_fx(L_shl(*gain_code, s1));
#endif
        s1 = sub(15, s1);
        tmp1 = mult_r(mult_r(tmp1, tmp1), g_coeff->y2y2);

@@ -594,7 +600,11 @@ Word16 gain_enc_uv( /* o : quantization pitch index
        L_tmp1 = L_add(L_tmp, 0);

        s1 = norm_l(*gain_code);
#ifdef BASOP_NOGLOB
        tmp1 = round_fx_o(L_shl_o(*gain_code, s1, &Overflow), &Overflow);
#else
        tmp1 = round_fx(L_shl(*gain_code, s1));
#endif
        s1 = sub(15, s1);

        c_index2 = 0x7FFF;