Commit d0a430b8 authored by vaillancour's avatar vaillancour
Browse files

Fix for 13200 32 stv32c

parent d49cb034
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -668,7 +668,9 @@ static void gethar_noisegn_fx(

    Word16 temp_lo, temp_hi;
    Word16 Qg;

#ifdef BASOP_NOGLOB
    Flag Overflow = 0;
#endif 
    /*Generate HF noise*/
    genhf_noise_fx(noise_flr_fx, Qss, L_xSynth_har, QsL, sspectra_fx ,bands, har_bands, har_freq_est2, pos_max_hfe2,pul_res_fx,pk_sf_fx,fLenLow,
                   fLenHigh, sbWidth, lagIndices, subband_offsets, subband_search_offset);
@@ -746,8 +748,13 @@ static void gethar_noisegn_fx(
            L_temp = L_Comp(exp, frac);

            L_temp = Mpy_32_16_1(L_temp, 19728);   /* log(2)/log(10)=.30102999566398119521 = 19728.3(Q16)    Q(0+16+1)=Q17 */
#ifdef BASOP_NOGLOB
            L_temp = L_shl_o(L_temp, 13, &Overflow);      /* Q17+13=30    30-16=14 */
            g_fx = round_fx_o(L_temp, &Overflow);
#else
            L_temp = L_shl(L_temp, 13);      /* Q17+13=30    30-16=14 */
            g_fx = round_fx(L_temp);
#endif
        }

        gqlevs_fx = 4;