From 5f13eff4a24a47446bf4c5c4e2d7a440f0cec460 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 23 Oct 2019 16:58:47 +0200 Subject: [PATCH] Fix aarch64 crc32 implementation RETVAL vs RETURN mixup resulted in the fallback implementation running as well. --- ext/standard/crc32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/crc32.c b/ext/standard/crc32.c index 853c95ef54f..c3ca59036c9 100644 --- a/ext/standard/crc32.c +++ b/ext/standard/crc32.c @@ -88,13 +88,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); } /* }}} */