aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/cpu.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-02-22 04:54:02 +0000
committerJanne Grunau <janne-libav@jannau.net>2014-02-23 15:29:36 +0100
commitd59fcdaff36eb45307a29756c5dd1852034a3f3f (patch)
tree47304bd6d5fedfb59a866443e75e1feda7155e05 /libavutil/cpu.h
parent1b932eb1508f550fac9e911923a0383efda53aa3 (diff)
downloadffmpeg-d59fcdaff36eb45307a29756c5dd1852034a3f3f.tar.gz
x86: add detection for Bit Manipulation Instruction sets
Based on x264 code Signed-off-by: James Almer <jamrial@gmail.com>
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 934b3be6a2..517c520119 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -50,6 +50,8 @@
#define AV_CPU_FLAG_CMOV 0x1000 ///< i686 cmov
#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