Skip to content
Snippets Groups Projects
Commit 95088d45 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

mix_pitch_and_residual() no longer computing Ryp twice

parent 189acec5
No related branches found
No related tags found
No related merge requests found
......@@ -62,16 +62,9 @@ static void mix_pitch_and_residual(int * restrict iy, celt_norm_t * restrict X,
for (i=0;i<N;i++)
Rpp = MAC16_16(Rpp,P[i],P[i]);
Ryp = 0;
for (i=0;i<N;i++)
Ryp = MAC16_16(Ryp,SHL16(iy[i],yshift),P[i]);
/* Remove part of the pitch component to compute the real residual from
the encoded (int) one */
for (i=0;i<N;i++)
y[i] = SHL16(iy[i],yshift);
/* Recompute after the projection (I think it's right) */
Ryp = 0;
for (i=0;i<N;i++)
Ryp = MAC16_16(Ryp,y[i],P[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment