[XviD-devel] Macros ?
Christoph Lampert
chl at math.uni-bonn.de
Sat Feb 22 21:06:14 CET 2003
Hi,
in ME we define ABS as a macro
#define ABS(X) (((X)>0)?(X):-(X))
which is translated into jumps, not conditional moves (on gcc) or
bit-arithmetics whereas libc abs() functions should be optimized for the
corresponding plattform and should always be inline in any reasonable
compiler.
Should we change that? Or is macro faster on Windows?
Then we could move it to portab.h
Similar question for "SIGN(X)" but not urgend, because that isn't used at
all...
gruel
More information about the XviD-devel
mailing list