[Ffmpeg-devel] Re: [PATCH] Machine endian bytestream functions

Måns Rullgård mans
Fri Mar 16 10:18:45 CET 2007


Michael Niedermayer <michaelni at gmx.at> writes:

>> >>   x86_64|amd64)
>> >>     arch="x86_32"
>> >>+    enable fast_unaligned
>> >>     canon_arch="`$cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
>> >>     if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
>> >>       if [ -z "`echo $CFLAGS | grep -- -m32`"  ]; then
>> >>    
>> >
>> >maybe configure should rather have a generic test which checks
>> >which version is faster? (it would be much easier to maintain
>> >instead of keeping track what is faster for which cpu ...)
>> 
>> Sorry, but I failed to find a simple way for this in configure. Three 
>> issues came up:
>> 1. Unaligned data accesses will crash on some processors, and I don't 
>> think it's a good idea to have configure throw exceptions. (e.g. it 
>> would open the "Send report" dialog on Windows).
>
> since when does windows support such hardware? and no real OS opens a
> dialog box if a program crahshes furthermore you could install a handler
> which catches the exception

Windows NT4 runs on Alpha, and Windows CE runs on various CPUs.  I
don't think any of these can run the ffmpeg configure though.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list