summaryrefslogtreecommitdiff
path: root/libavutil/cpu.h
diff options
context:
space:
mode:
authorKieran Kunhya <kierank@ob-encoder.com>2013-10-20 10:28:38 -0500
committerMichael Niedermayer <michaelni@gmx.at>2013-10-26 02:34:22 +0200
commit865b70bc5d1cf37ec6d6cb729a69dda2cca28bd5 (patch)
treec8b62155b3715ac4b6bf82ea250d6d442ccaf5e8 /libavutil/cpu.h
parent780669ef7c23c00836a24921fcc6b03be2b8ca4a (diff)
Add AVX2 capable CPU detection. Patch based on x264's AVX2 detection
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 50bdea7918..e9185f12f4 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -50,6 +50,8 @@
// #else
// #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_ALTIVEC 0x0001 ///< standard