[XviD-devel] Decoder performance

Christoph Lampert chl at math.uni-bonn.de
Sun Aug 10 11:16:16 CEST 2003


On Sat, 9 Aug 2003, Edouard Gomez wrote:

> Edouard Gomez (ed.gomez at free.fr) wrote:
> > #define div_2(a, b) (((a)-(((a)>>31)&(-b)))>>(b))
> 
> Don't know what happens to me, perhaps the heat... but the original code
> from gruel was right too :\ so forget these 2 last emails

If you put something like "div_2" into the code, you should add a comment
that b is a flag, which is only allowed to be 0 or 1, meaning "no-op", or 
"divide by 2". 

gruel 




More information about the XviD-devel mailing list