Mercurial > libavcodec.hg
changeset 7069:92bcfa9ba977 libavcodec
Factorize I >> (c->tbls->bits - 1) out.
author | michael |
---|---|
date | Thu, 19 Jun 2008 10:29:36 +0000 |
parents | 6497251e2fde |
children | 3e197f8ee6c6 |
files | g726.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/g726.c Thu Jun 19 10:12:15 2008 +0000 +++ b/g726.c Thu Jun 19 10:29:36 2008 +0000 @@ -188,6 +188,7 @@ { int dq, re_signal, pk0, fa1, i, tr, ylint, ylfrac, thr2, al, dq0; Float11 f; + int I_sig= I >> (c->tbls->bits - 1); dq = inverse_quant(c, I); @@ -197,7 +198,7 @@ thr2 = (ylint > 9) ? 0x1f << 10 : (0x20 + ylfrac) << ylint; tr= (c->td == 1 && dq > ((3*thr2)>>2)); - if (I >> (c->tbls->bits - 1)) /* get the sign */ + if (I_sig) /* get the sign */ dq = -dq; re_signal = c->se + dq; @@ -230,7 +231,7 @@ for (i=5; i>0; i--) c->dq[i] = c->dq[i-1]; i2f(dq, &c->dq[0]); - c->dq[0].sign = I >> (c->tbls->bits - 1); /* Isn't it crazy ?!?! */ + c->dq[0].sign = I_sig; /* Isn't it crazy ?!?! */ c->td = c->a[1] < -11776;