From 865b70bc5d1cf37ec6d6cb729a69dda2cca28bd5 Mon Sep 17 00:00:00 2001 From: Kieran Kunhya Date: Sun, 20 Oct 2013 10:28:38 -0500 Subject: Add AVX2 capable CPU detection. Patch based on x264's AVX2 detection Signed-off-by: Michael Niedermayer --- libavutil/cpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/cpu.h') 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 -- cgit v1.2.3