summaryrefslogtreecommitdiff
path: root/Zend/zend_string.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-05-13 13:33:03 +0300
committerDmitry Stogov <dmitry@zend.com>2019-05-13 13:33:03 +0300
commit3322ae2eb2f9869583ff162e8daa6d5360b7ffea (patch)
tree3374faf6b2f459594a65bbfbbcddd1a9eb05f397 /Zend/zend_string.h
parent071793a0bb278559c32efefbde180727aa312856 (diff)
downloadphp-git-3322ae2eb2f9869583ff162e8daa6d5360b7ffea.tar.gz
ARM64 may be big endian
Diffstat (limited to 'Zend/zend_string.h')
-rw-r--r--Zend/zend_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_string.h b/Zend/zend_string.h
index 4fb3e3b5b3..20275f330a 100644
--- a/Zend/zend_string.h
+++ b/Zend/zend_string.h
@@ -364,7 +364,7 @@ static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size
#if defined(_WIN32) || defined(__i386__) || defined(__x86_64__) || defined(__aarch64__)
/* Version with multiplication works better on modern CPU */
for (; len >= 8; len -= 8, str += 8) {
-# if defined(__aarch64__)
+# if defined(__aarch64__) && !defined(WORDS_BIGENDIAN)
/* On some architectures it is beneficial to load 8 bytes at a
time and extract each byte with a bit field extract instr. */
uint64_t chunk;