Commit c74ee293 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

use swb_bwe_enc_lr_fx from main

parent 59189eaf
Loading
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -698,11 +698,9 @@ static void gethar_noisegn_fx(

    Word16 temp_lo, temp_hi;
    Word16 Qg;
#ifndef ISSUE_1867_replace_overflow_libenc
#ifdef BASOP_NOGLOB_DECLARE_LOCAL
    Flag Overflow = 0;
    move16();
#endif
#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,
@@ -785,13 +783,8 @@ 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 ISSUE_1867_replace_overflow_libenc
            L_temp = L_shl_sat( L_temp, 13 ); /* Q17+13=30    30-16=14 */ //??sat
            g_fx = round_fx_sat( L_temp );                                //??sat
#else
            L_temp = L_shl_o( L_temp, 13, &Overflow ); /* Q17+13=30    30-16=14 */
            g_fx = round_fx_o( L_temp, &Overflow );
#endif
        }

        gqlevs_fx = 4;