diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-27 11:54:39 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-27 14:49:31 +0100 |
commit | 4e30ab33d84232ba2686e7ed5b125861db63142d (patch) | |
tree | 75c325bda8de2979c6c81934f4ae5b2648c99a41 /Zend/zend_API.h | |
parent | 07c5efbd76faa0aa43fa3ddded0b562876a88e5a (diff) | |
download | php-git-4e30ab33d84232ba2686e7ed5b125861db63142d.tar.gz |
Fix AVX detection
Our CPU detection code currently only checks whether hardware
support for AVX exists. However, we also need to check for operating
system support for XSAVE, as well as whether XCR0 has the SSE and
AVX bits set.
If this is not the case, unset the AVX and AVX2 bits in the cpuinfo
structure.
Hopefully this resolves our issues with CPU support detection.
Closes GH-6460.
Diffstat (limited to 'Zend/zend_API.h')
0 files changed, 0 insertions, 0 deletions