comparison lsp.c @ 8201:c6e2ffef3797 libavcodec

Add shift argument to MULL() macro This replaces use of FRAC_BITS in the MULL() definition with a third argument specifying the shift amount. All uses of this macro are updated to pass FRAC_BITS as third argument.
author mru
date Mon, 24 Nov 2008 09:28:55 +0000
parents ecb1962c12f3
children c1cfa4679371
comparison
equal deleted inserted replaced
8200:843d82925adf 8201:c6e2ffef3797
70 70
71 for(i=2; i<=lp_half_order; i++) 71 for(i=2; i<=lp_half_order; i++)
72 { 72 {
73 f[i] = f[i-2]; 73 f[i] = f[i-2];
74 for(j=i; j>1; j--) 74 for(j=i; j>1; j--)
75 f[j] -= MULL(f[j-1], lsp[2*i-2]) - f[j-2]; 75 f[j] -= MULL(f[j-1], lsp[2*i-2], FRAC_BITS) - f[j-2];
76 76
77 f[1] -= lsp[2*i-2] << 8; 77 f[1] -= lsp[2*i-2] << 8;
78 } 78 }
79 } 79 }
80 80