1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 15:12:39 +02:00

Merge branch 'PHP-7.4'

* PHP-7.4:
  Fix aarch64 crc32 implementation
This commit is contained in:
Nikita Popov
2019-10-23 17:42:16 +02:00

View File

@@ -86,13 +86,13 @@ PHP_NAMED_FUNCTION(php_if_crc32)
#if defined(__aarch64__)
if (has_crc32_insn()) {
crc = crc32_aarch64(crc, p, nr);
RETVAL_LONG(crc^0xFFFFFFFF);
RETURN_LONG(crc^0xFFFFFFFF);
}
#endif
for (; nr--; ++p) {
crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ];
}
RETVAL_LONG(crc^0xFFFFFFFF);
RETURN_LONG(crc^0xFFFFFFFF);
}
/* }}} */