Skip to content

Commit 9cbc9ac

Browse files
committed
use zend_simd.h in zend_accelerator_util_funcs.c
1 parent dfff6ac commit 9cbc9ac

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ext/opcache/zend_accelerator_util_funcs.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@
2727
#include "zend_shared_alloc.h"
2828
#include "zend_observer.h"
2929

30-
#ifdef __SSE2__
31-
/* For SSE2 adler32 */
32-
#include <immintrin.h>
33-
#endif
30+
#include "zend_simd.h"
3431

3532
typedef int (*id_function_t)(void *, void *);
3633
typedef void (*unique_copy_ctor_func_t)(void *pElement);
@@ -466,7 +463,7 @@ static zend_always_inline void adler32_do16_loop(unsigned char *buf, unsigned ch
466463
unsigned int s1 = *s1_out;
467464
unsigned int s2 = *s2_out;
468465

469-
#ifdef __SSE2__
466+
#ifdef XSSE2
470467
const __m128i zero = _mm_setzero_si128();
471468

472469
__m128i accumulate_s2 = zero;

0 commit comments

Comments
 (0)