[FFmpeg-devel] [PATCH 1/2] x86: add detection for FMA3 instruction set

James Almer jamrial at gmail.com
Sat Feb 22 16:54:23 CET 2014


On 22/02/14 11:13 AM, Michael Niedermayer wrote:
> On Sat, Feb 22, 2014 at 02:47:01AM -0300, James Almer wrote:
>> diff --git a/libavutil/cpu.h b/libavutil/cpu.h
>> index 55c3ec9..1d0293f 100644
>> --- a/libavutil/cpu.h
>> +++ b/libavutil/cpu.h
>> @@ -51,6 +51,7 @@
>>  // #define AV_CPU_FLAG_CMOV         0x1000 ///< supports cmov instruction
>>  // #endif
>>  #define AV_CPU_FLAG_AVX2         0x8000 ///< AVX2 functions: requires OS support even if YMM registers aren't used
>> +#define AV_CPU_FLAG_FMA3        0x10000 ///< Haswell FMA3 functions
> 
> please choose some value thats more "distant" so we dont immedeatly
> have a incompatibility with libav when they add the flags in a
> different order

I sent the same patchset to libav to make sure these flags are shared 
between the two projects.
You can wait until it's committed there and merge the changes, if you 
prefer.

Regards.


More information about the ffmpeg-devel mailing list