Check for OS AVX support in addition to CPUID
authorJason Garrett-Glaser <jason@x264.com>
Thu, 27 Jan 2011 13:33:25 +0000 (05:33 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Thu, 27 Jan 2011 13:40:15 +0000 (05:40 -0800)
commitf6d0c95b964d52780891c39f6ec93022b6ec1cb0
tree5c5d843d335254f13dc47ecff89bb817067feadb
parentcd53fa47afadb563eefb72c137fb30bd06d26c85
Check for OS AVX support in addition to CPUID
Even if not using ymm registers, AVX operations will cause SIGILLs on unsupported OSs.
On Windows, AVX is only available on Windows 7 SP1 or later.
common/cpu.c
common/x86/cpu-a.asm
x264.h