[FFmpeg-devel] [PATCH] MMX for Win64
matthieu castet
castet.matthieu
Sat May 3 20:55:10 CEST 2008
M?ns Rullg?rd wrote:
> Jean-Baptiste Kempf <jb at videolan.org> writes:
>
>> The only difference between LP64 and LLP64 is the long type.
>> Using size_t wouldn't break it.
>
> It's wrong to use size_t here. There is no guarantee that size_t
> is at all suitable. For instance, it could legally be 64 bits on a
> 32-bit system, or 32 bits on a 64-bit system.
>
And for the info :
http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html :
The implementation shall support one or more programming environments in
which the widths of blksize_t, pid_t, size_t, ssize_t, suseconds_t, and
useconds_t are no greater than the width of type long.
So it can be even worse : depending on some configuration ("programming
environments"), the size of ssize_t can change...
More information about the ffmpeg-devel
mailing list