[FFmpeg-devel] [PATCH] MMX for Win64
Sat May 3 19:35:04 CEST 2008
Jean-Baptiste Kempf <jb at videolan.org> writes:
> On Sat, May 03, 2008 at 10:43:13AM +0200, matthieu castet wrote :
>> Jean-Baptiste Kempf wrote:
>> > Assembler tries to make a pushl value, which is for x86_64 forbidden.
>> > Long is 32bit on Win64
>> > (http://technet.microsoft.com/en-us/library/bb496995.aspx).
>> > ssize_t, however, is portable between both archs."
>> Yes but ffmpeg don't run only on win32 and win64. What make you think it
>> will work under _all_ arch ?
> Why would using ssize_t or size_t break ?
> 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.
mans at mansr.com
More information about the ffmpeg-devel