]> granicus.if.org Git - php/commitdiff
Fix AVX part
authorAnatol Belski <ab@php.net>
Thu, 31 May 2018 12:15:28 +0000 (14:15 +0200)
committerAnatol Belski <ab@php.net>
Thu, 31 May 2018 12:15:28 +0000 (14:15 +0200)
ext/opcache/ZendAccelerator.c

index 985fbf64f095ef54e7927f536a94f66c0f61413c..c08f098ed80a51e51e3519e01110cbf62ab6e785 100644 (file)
@@ -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);