1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

zend_memrchr using standard preprocessor id for x86 instead. (#19491)

Might be intentional, but otherwise `__i386__` is the standard.
This commit is contained in:
David CARLIER
2025-08-18 12:13:19 +01:00
committed by GitHub
parent c98b173430
commit c53a20d5ab

View File

@@ -215,7 +215,7 @@ zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const
static zend_always_inline const void *zend_memrchr(const void *s, int c, size_t n)
{
#if defined(HAVE_MEMRCHR) && !defined(i386)
#if defined(HAVE_MEMRCHR) && !defined(__i386__)
/* On x86 memrchr() doesn't use SSE/AVX, so inlined version is faster */
return (const void*)memrchr(s, c, n);
#else