diff options
author | James Almer <jamrial@gmail.com> | 2016-02-07 00:29:43 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-02-14 20:00:17 -0300 |
commit | 73a4589d4b0d97cbd6f8bf8be18b78151b657898 (patch) | |
tree | 4af2b71f9646eb762290932ed6b3eff9b446b4c6 /libavutil/x86 | |
parent | fbc96c50d72f55131e43939e38c1e5af4315a755 (diff) | |
download | ffmpeg-73a4589d4b0d97cbd6f8bf8be18b78151b657898.tar.gz |
x86: add some more helper macros to check for slow cpuflags
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/x86')
-rw-r--r-- | libavutil/x86/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/x86/cpu.h b/libavutil/x86/cpu.h index dc102c6015..f171037f1c 100644 --- a/libavutil/x86/cpu.h +++ b/libavutil/x86/cpu.h @@ -68,8 +68,12 @@ #define EXTERNAL_AVX_SLOW(flags) CPUEXT_SUFFIX_SLOW(flags, _EXTERNAL, AVX) #define EXTERNAL_XOP(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, XOP) #define EXTERNAL_FMA3(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, FMA3) +#define EXTERNAL_FMA3_FAST(flags) CPUEXT_SUFFIX_FAST2(flags, _EXTERNAL, FMA3, AVX) +#define EXTERNAL_FMA3_SLOW(flags) CPUEXT_SUFFIX_SLOW2(flags, _EXTERNAL, FMA3, AVX) #define EXTERNAL_FMA4(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, FMA4) #define EXTERNAL_AVX2(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, AVX2) +#define EXTERNAL_AVX2_FAST(flags) CPUEXT_SUFFIX_FAST2(flags, _EXTERNAL, AVX2, AVX) +#define EXTERNAL_AVX2_SLOW(flags) CPUEXT_SUFFIX_SLOW2(flags, _EXTERNAL, AVX2, AVX) #define EXTERNAL_AESNI(flags) CPUEXT_SUFFIX(flags, _EXTERNAL, AESNI) #define INLINE_AMD3DNOW(flags) CPUEXT_SUFFIX(flags, _INLINE, AMD3DNOW) |