[MPlayer-dev-eng] __WORDSIZE and system performance
Falk Hueffner
falk.hueffner at student.uni-tuebingen.de
Mon Jul 8 09:27:10 CEST 2002
Sylvain Petreolle <spetreolle at yahoo.fr> writes:
> compiling on Cygwin,
>
> i get from postproc/rgb2_rgb_template.c :
> #include <inttypes.h> /* for __WORDSIZE */
>
> #ifndef __WORDSIZE
> #warning You have misconfigured system and probably
> will lose performance!
>
> Which value should be __WORDSIZE set to, as inttypes.h
> normally doesn't exist on Cygwin and is implemented by
> etc/cygwin_inttypes.h ?
Well, it should be set to the word size :) Which is 4 for i386.
It's not really part of any standard. Probably a better idea would be
to set an own macro to sizeof(size_t)*8 in configure.
> Or is this simply a #define to disable some code ?
It's to decide whether 64-bit memory access and arithmetics is as fast
as 32-bit.
--
Falk
More information about the MPlayer-dev-eng
mailing list