aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/cpu.h
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-02-16 02:39:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-02-20 19:05:47 +0100
commitcdeba2de821df504ca799c103e48f3e9a92241f9 (patch)
treecb2afb48e3787dfb5302a290b40ce8f84f77e86b /libavutil/cpu.h
parent91861ce25c7f19c38afdb0f115bf90118fc19428 (diff)
downloadffmpeg-cdeba2de821df504ca799c103e48f3e9a92241f9.tar.gz
x86: check for AVX support
This adds configure and runtime checks for AVX support on x86 CPUs. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 87f1355f9b4fc11414d0e6a91404203c2745f89f)
Diffstat (limited to 'libavutil/cpu.h')
-rw-r--r--libavutil/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/cpu.h b/libavutil/cpu.h
index 71cc26529a..d60e062e19 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -36,6 +36,7 @@
#define AV_CPU_FLAG_SSSE3 0x0080 ///< Conroe SSSE3 functions
#define AV_CPU_FLAG_SSE4 0x0100 ///< Penryn SSE4.1 functions
#define AV_CPU_FLAG_SSE42 0x0200 ///< Nehalem SSE4.2 functions
+#define AV_CPU_FLAG_AVX 0x4000 ///< AVX functions: requires OS support even if YMM registers aren't used
#define AV_CPU_FLAG_IWMMXT 0x0100 ///< XScale IWMMXT
#define AV_CPU_FLAG_ALTIVEC 0x0001 ///< standard