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:
@@ -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);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
Reference in New Issue
Block a user