Skip to content

Commit c53a20d

Browse files
authored
zend_memrchr using standard preprocessor id for x86 instead. (php#19491)
Might be intentional, but otherwise `__i386__` is the standard.
1 parent c98b173 commit c53a20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_operators.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const
215215

216216
static zend_always_inline const void *zend_memrchr(const void *s, int c, size_t n)
217217
{
218-
#if defined(HAVE_MEMRCHR) && !defined(i386)
218+
#if defined(HAVE_MEMRCHR) && !defined(__i386__)
219219
/* On x86 memrchr() doesn't use SSE/AVX, so inlined version is faster */
220220
return (const void*)memrchr(s, c, n);
221221
#else

0 commit comments

Comments
 (0)