[MPlayer-dev-eng] __WORDSIZE and system performance

Nick Kurshev nickols_k at mail.ru
Mon Jul 8 16:52:47 CEST 2002


Hello, Falk!

On 08 Jul 2002 09:27:10 +0200 you wrote:

> 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.
> 
for i386:
#ifndef __WORDSIZE
#define __WORDSIZE 32
#endif
> 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.
> 
sizeof is *OPERATOR* of "C" language but __WORDSIZE is macro of preprocessor.
> > 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.
> 
for 32-bit system there is no performance losing - only for 64 and more.
> -- 
> 	Falk
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
> 


Best regards! Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020708/b35578fe/attachment.pgp>


More information about the MPlayer-dev-eng mailing list