summaryrefslogtreecommitdiff
path: root/ext/standard/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/crc32.c')
-rw-r--r--ext/standard/crc32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/crc32.c b/ext/standard/crc32.c
index 765135a142..497b133642 100644
--- a/ext/standard/crc32.c
+++ b/ext/standard/crc32.c
@@ -20,7 +20,7 @@
#include "basic_functions.h"
#include "crc32.h"
-#if defined(__aarch64__) && defined(HAVE_SYS_AUXV_H)
+#if HAVE_AARCH64_CRC32
# include <arm_acle.h>
# if defined(__linux__)
# include <sys/auxv.h>
@@ -85,7 +85,7 @@ PHP_NAMED_FUNCTION(php_if_crc32)
crc = crcinit^0xFFFFFFFF;
-#if defined(__aarch64__) && defined(HAVE_SYS_AUXV_H)
+#if HAVE_AARCH64_CRC32
if (has_crc32_insn()) {
crc = crc32_aarch64(crc, p, nr);
RETURN_LONG(crc^0xFFFFFFFF);