mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix compilation on x32
Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
This commit is contained in:
parent
512b93e9d6
commit
f76be1a0d6
3 changed files with 3 additions and 3 deletions
|
@ -392,7 +392,7 @@ ZEND_API zend_bool ZEND_FASTCALL I_WRAP_SONAME_FNNAME_ZU(NONE,zend_string_equal_
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(__GNUC__) && defined(__x86_64__)
|
#elif defined(__GNUC__) && defined(__x86_64__) && !defined(__ILP32__)
|
||||||
ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_string *s2)
|
ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_string *s2)
|
||||||
{
|
{
|
||||||
char *ptr = ZSTR_VAL(s1);
|
char *ptr = ZSTR_VAL(s1);
|
||||||
|
|
|
@ -294,7 +294,7 @@ static zend_always_inline void zend_string_release_ex(zend_string *s, int persis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
#if defined(__GNUC__) && (defined(__i386__) || (defined(__x86_64__) && !defined(__ILP32__)))
|
||||||
BEGIN_EXTERN_C()
|
BEGIN_EXTERN_C()
|
||||||
ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_string *s2);
|
ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_string *s2);
|
||||||
END_EXTERN_C()
|
END_EXTERN_C()
|
||||||
|
|
|
@ -719,7 +719,7 @@ static zend_always_inline void fast_memcpy(void *dest, const void *src, size_t s
|
||||||
: "r"(delta)
|
: "r"(delta)
|
||||||
: "cc", "memory", "%xmm0", "%xmm1", "%xmm1", "%xmm2");
|
: "cc", "memory", "%xmm0", "%xmm1", "%xmm1", "%xmm2");
|
||||||
}
|
}
|
||||||
# elif defined(__GNUC__) && defined(__x86_64__)
|
# elif defined(__GNUC__) && defined(__x86_64__) && !defined(__ILP32__)
|
||||||
static zend_always_inline void fast_memcpy(void *dest, const void *src, size_t size)
|
static zend_always_inline void fast_memcpy(void *dest, const void *src, size_t size)
|
||||||
{
|
{
|
||||||
size_t delta = (char*)dest - (char*)src;
|
size_t delta = (char*)dest - (char*)src;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue