Skip to content

Commit 4367a0d

Browse files
committed
Fix for 32 bit
1 parent 3afbcde commit 4367a0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Zend/zend_cpuinfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static zend_always_inline int zend_cpu_supports_avx512_vbmi(void) {
272272
#endif
273273

274274
/* __builtin_cpu_supports has pclmul from gcc9 and clang 19 */
275-
#if defined(PHP_HAVE_BUILTIN_CPU_SUPPORTS) && defined(__x86_64__) && \
275+
#if defined(PHP_HAVE_BUILTIN_CPU_SUPPORTS) && (defined(__x86_64__) || defined(__i386__)) && \
276276
( \
277277
(!defined(__GNUC__) || (defined(__clang__) && __clang_major__ >= 19) || (ZEND_GCC_VERSION >= 9000)) \
278278
)
@@ -290,7 +290,7 @@ static inline int zend_cpu_supports_pclmul(void) {
290290
#endif
291291

292292
/* __builtin_cpu_supports has cldemote from gcc11 and clang 19 */
293-
#if defined(PHP_HAVE_BUILTIN_CPU_SUPPORTS) && defined(__x86_64__) && \
293+
#if defined(PHP_HAVE_BUILTIN_CPU_SUPPORTS) && (defined(__x86_64__) || defined(__i386__)) && \
294294
( \
295295
(defined(__clang__) && (__clang_major__ >= 19)) || \
296296
(!defined(__clang__) && defined(__GNUC__) && (ZEND_GCC_VERSION >= 11000)) \

0 commit comments

Comments
 (0)