Loading lib_enc/cod_tcx_fx.c +10 −1 Original line number Diff line number Diff line Loading @@ -1841,6 +1841,11 @@ void QuantizeSpectrum_fx( /* Save quantized Values */ tmp32 = L_deposit_l( 0 ); move16(); #ifdef FIX_ISSUE_1965_REPLACE_CARRY_OVERFLOW Word64 seed = 0; move64(); #endif FOR( i = 0; i < L_spec; i++ ) { spectrum[i] = L_mult( sqQ[i], 1 << ( 30 - SPEC_EXP_DEC ) ); Loading @@ -1849,13 +1854,17 @@ void QuantizeSpectrum_fx( #ifndef FIX_ISSUE_1965_REPLACE_CARRY_OVERFLOW tmp32 = L_macNs_co( tmp32, abs_s( sqQ[i] ), i, &Carry, &Overflow ); #else tmp32 = L_macNs( tmp32, abs_s( sqQ[i] ), i ); seed = W_mac_16_16( seed, abs_s( sqQ[i] ), i ); #endif } *spectrum_e = SPEC_EXP_DEC; move16(); #ifdef FIX_ISSUE_1965_REPLACE_CARRY_OVERFLOW nf_seed = extract_l( W_extract_l( seed ) ); // Q0 #else nf_seed = extract_l( tmp32 ); #endif } ELSE /* low rates: new arithmetic coder */ { Loading Loading
lib_enc/cod_tcx_fx.c +10 −1 Original line number Diff line number Diff line Loading @@ -1841,6 +1841,11 @@ void QuantizeSpectrum_fx( /* Save quantized Values */ tmp32 = L_deposit_l( 0 ); move16(); #ifdef FIX_ISSUE_1965_REPLACE_CARRY_OVERFLOW Word64 seed = 0; move64(); #endif FOR( i = 0; i < L_spec; i++ ) { spectrum[i] = L_mult( sqQ[i], 1 << ( 30 - SPEC_EXP_DEC ) ); Loading @@ -1849,13 +1854,17 @@ void QuantizeSpectrum_fx( #ifndef FIX_ISSUE_1965_REPLACE_CARRY_OVERFLOW tmp32 = L_macNs_co( tmp32, abs_s( sqQ[i] ), i, &Carry, &Overflow ); #else tmp32 = L_macNs( tmp32, abs_s( sqQ[i] ), i ); seed = W_mac_16_16( seed, abs_s( sqQ[i] ), i ); #endif } *spectrum_e = SPEC_EXP_DEC; move16(); #ifdef FIX_ISSUE_1965_REPLACE_CARRY_OVERFLOW nf_seed = extract_l( W_extract_l( seed ) ); // Q0 #else nf_seed = extract_l( tmp32 ); #endif } ELSE /* low rates: new arithmetic coder */ { Loading