scale_sig(&(synth[-(((L_frame/2)+hTcxDec->pit_max_TCX)+2*M)]),add(add(shr(L_frame,1),hTcxDec->pit_max_TCX),shl_sat(M,1)),negate(st->Q_syn_factor));/*Q0, Setting back to Q0, as the following calculations are implemented assuming synth is in Q0 */
#else
IF(!leg_flag)
IF(NE_16(st->element_mode,EVS_MONO))
{
scale_sig(&(synth[-(((L_frame/2)+hTcxDec->pit_max_TCX)+2*M)]),add(add(shr(L_frame,1),hTcxDec->pit_max_TCX),shl_sat(M,1)),negate(st->Q_syn_factor));/*Q0, Setting back to Q0, as the following calculations are implemented assuming synth is in Q0 */
scale_sig(&synth[-L_frame],L_frame,negate(st->Q_syn_factor));/*Q0, Setting back to Q0, as the following calculations are implemented assuming synth is in Q0 */
scale_sig(&synth[-L_frame],L_frame,negate(st->Q_syn_factor));/*Q0, Setting back to Q0, as the following calculations are implemented assuming synth is in Q0 */
@@ -1531,7 +1531,7 @@ void con_tcx_ivas_fx(
#ifndef HARMONIZE_2446_CON_TCX_FX
IF(NE_16(coh,-16384))
#else
IF(NE_16(coh,-16384)&&!leg_flag)
IF(NE_16(coh,-16384))
#endif // !HARMONIZE_2446_CON_TCX_FX
{
Word16tmpSeed1;
@@ -1761,7 +1761,7 @@ void con_tcx_ivas_fx(
#ifndef HARMONIZE_2446_CON_TCX_FX
tmp_e=sub(add(tmp_e,shl(noise_e,1)),1);// actual multiplier!
#else
IF(!leg_flag)
IF(NE_16(st->element_mode,EVS_MONO))
{
tmp_e=sub(add(tmp_e,shl_sat(noise_e,1)),1);// actual multiplier!
}
@@ -1781,7 +1781,7 @@ void con_tcx_ivas_fx(
move16();
}
#else
IF(!leg_flag)
IF(NE_16(st->element_mode,EVS_MONO))
{
tmp_e=add(tmp_e,31-6);/*-->Q31*/
gain_inov=0;
@@ -1914,7 +1914,7 @@ void con_tcx_ivas_fx(
new_Q=s_max(new_Q,-1);
new_Q=s_min(new_Q,scf);
#else
IF(!leg_flag||NE_32(st->element_mode,EVS_MONO))
IF(NE_16(st->element_mode,EVS_MONO))
{
scf=norm_s(tmp_deemph);
new_Q=sub(Q_exc,4);// deemph_fx filter gain can be up to 10 (~2^3.32), so 4 bits of headroom are needed to avoid overflow
@@ -1953,7 +1953,7 @@ void con_tcx_ivas_fx(
move16();
#else
IF(!leg_flag)
IF(NE_16(st->element_mode,EVS_MONO))
{
if(GT_16(sub(Q_syn,st->Q_syn_factor),scf))
@@ -1967,7 +1967,7 @@ void con_tcx_ivas_fx(
}
ELSE
{
IF(NE_32(st->element_mode,EVS_MONO))// to keep evs bit-exactness
IF(NE_16(st->element_mode,EVS_MONO))// to keep evs bit-exactness