aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/cpu.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-02-22 02:47:02 -0300
committerMichael Niedermayer <michaelni@gmx.at>2014-02-22 17:26:00 +0100
commit0bc3de19ffe296254f214dc7615e624d8e401bcb (patch)
treebaf6c701eb1d0811e9469360c39eed5f2d9e20e6 /libavutil/cpu.h
parenta2af8eddab75f1eac712411e4dde89823c0845e8 (diff)
downloadffmpeg-0bc3de19ffe296254f214dc7615e624d8e401bcb.tar.gz
x86: add detection for Bit Manipulation Instruction sets
Based on x264 code Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/cpu.h')
-rw-r--r--libavutil/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/cpu.h b/libavutil/cpu.h
index 1d0293fed3..0ad400fefb 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -52,6 +52,8 @@
// #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
+#define AV_CPU_FLAG_BMI1 0x20000 ///< Bit Manipulation Instruction Set 1
+#define AV_CPU_FLAG_BMI2 0x40000 ///< Bit Manipulation Instruction Set 2
#define AV_CPU_FLAG_ALTIVEC 0x0001 ///< standard