Skip to content

Commit 3322ae2

Browse files
committed
ARM64 may be big endian
1 parent 071793a commit 3322ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size
364364
#if defined(_WIN32) || defined(__i386__) || defined(__x86_64__) || defined(__aarch64__)
365365
/* Version with multiplication works better on modern CPU */
366366
for (; len >= 8; len -= 8, str += 8) {
367-
# if defined(__aarch64__)
367+
# if defined(__aarch64__) && !defined(WORDS_BIGENDIAN)
368368
/* On some architectures it is beneficial to load 8 bytes at a
369369
time and extract each byte with a bit field extract instr. */
370370
uint64_t chunk;

0 commit comments

Comments
 (0)