fix AVX & AVX2 detection
authorJames Zern <jzern@google.com>
Thu, 15 Jan 2015 06:51:49 +0000 (22:51 -0800)
committerJames Zern <jzern@google.com>
Fri, 16 Jan 2015 07:16:25 +0000 (23:16 -0800)
commit7e515c46372e6dee7f47bae3733378756e40783a
treedfb8cb8bc391ea8da7ec21d26e4df53025742cb7
parent4e04fa6dea716d4dafdb8a1d1dedc15455cddf3b
fix AVX & AVX2 detection

fixes issue #790 which resulted in a SIGILL on OpenBSD

code is mostly from libwebp, based on the following:

https://software.intel.com/en-us/articles/how-to-detect-new-instruction-support-in-the-4th-generation-intel-core-processor-family

Change-Id: Ida7c1a18261e98c05ed9c662068140be407ec107
vpx_ports/x86.h