diff options
author | Xinchen Hui <laruence@gmail.com> | 2018-02-10 17:37:38 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2018-02-10 17:38:30 +0800 |
commit | 08428cf6a77d360b52028d6ddfe1409218e391db (patch) | |
tree | 34c4db557c8353f08da3158320baaa75ed8bda0c /Zend/zend.c | |
parent | 7ce72f0cf5c0b5bc458bee90698e19fb417d8b96 (diff) | |
download | php-git-08428cf6a77d360b52028d6ddfe1409218e391db.tar.gz |
Fixed cpuinfo in LLVM GCC & Added AVX2 detection
Seems it only defines __builtin_cpu_supports but no __builtin_cpu_init
(Apple LLVM version 9.0.0 (clang-900.0.38))
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index dc0cab8cc0..e62f9e1a48 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -743,6 +743,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions) / #endif zend_cpu_startup(); + zend_cpu_supports(ZEND_CPU_FEATURE_AVX2); #ifdef ZEND_WIN32 php_win32_cp_set_by_id(65001); |