[FFmpeg-devel] [PATCH 1/2] x86: add detection for FMA3 instruction set
Michael Niedermayer
michaelni at gmx.at
Sat Feb 22 17:43:28 CET 2014
On Sat, Feb 22, 2014 at 12:54:23PM -0300, James Almer wrote:
> 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.
hmm, thats faith in the good in humans to not intentionally pick
different values ...
well, patchset applied
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140222/e25b5a65/attachment.asc>
More information about the ffmpeg-devel
mailing list