We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea2994 commit f73528fCopy full SHA for f73528f
configure.ac
@@ -440,6 +440,7 @@ resolv.h \
440
strings.h \
441
syslog.h \
442
sysexits.h \
443
+sys/auxv.h \
444
sys/ioctl.h \
445
sys/file.h \
446
sys/mman.h \
ext/standard/crc32.c
@@ -20,7 +20,7 @@
20
#include "basic_functions.h"
21
#include "crc32.h"
22
23
-#if defined(__aarch64__)
+#if defined(__aarch64__) && defined(HAVE_SYS_AUXV_H)
24
# include <arm_acle.h>
25
# if defined(__linux__)
26
# include <sys/auxv.h>
@@ -85,7 +85,7 @@ PHP_NAMED_FUNCTION(php_if_crc32)
85
86
crc = crcinit^0xFFFFFFFF;
87
88
89
if (has_crc32_insn()) {
90
crc = crc32_aarch64(crc, p, nr);
91
RETURN_LONG(crc^0xFFFFFFFF);
0 commit comments