Mercurial > mplayer.hg
comparison libaf/filter.h @ 8957:36a5cdca733b
bunkus: Encapsulated arguments to #define in ( ... ) so that the #defines can be safely used like functions: mydef(flag ? val1 : val2)
author | mosu |
---|---|
date | Wed, 15 Jan 2003 11:16:33 +0000 |
parents | a1578b329cc0 |
children | 14090f7300a8 |
comparison
equal
deleted
inserted
replaced
8956:9787abc8039e | 8957:36a5cdca733b |
---|---|
61 filter. xq is the circular queue, in pointing at the new sample, xi | 61 filter. xq is the circular queue, in pointing at the new sample, xi |
62 current index for xq and n the length of the filter. xq must be n*2 | 62 current index for xq and n the length of the filter. xq must be n*2 |
63 long. | 63 long. |
64 */ | 64 */ |
65 #define updateq(n,xi,xq,in)\ | 65 #define updateq(n,xi,xq,in)\ |
66 xq[xi]=xq[xi+n]=*in;\ | 66 xq[xi]=(xq)[(xi)+(n)]=*(in);\ |
67 xi=(++xi)&(n-1); | 67 xi=(++(xi))&((n)-1); |
68 | 68 |
69 #endif | 69 #endif |