diff options
-rw-r--r-- | ext/opcache/ZendAccelerator.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 985fbf64f0..c08f098ed8 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -77,6 +77,10 @@ typedef int gid_t; #include <sys/stat.h> #include <errno.h> +#ifdef __AVX__ +#include <immintrin.h> +#endif + #define SHM_PROTECT() \ do { \ if (ZCG(accel_directives).protect_memory) { \ @@ -1488,7 +1492,7 @@ static zend_persistent_script *cache_script_in_shared_memory(zend_persistent_scr { char *p = (char*)ZCG(mem); char *end = p + memory_used; - __m256i ymm0 = _mm256_zeroall(); + __m256i ymm0 = _mm256_setzero_si256(); while (p < end) { _mm256_store_si256((__m256i*)p, ymm0); |