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 e11468a commit 67b0e43Copy full SHA for 67b0e43
ext/standard/crc32.c
@@ -26,6 +26,15 @@
26
# include <asm/hwcap.h>
27
# elif defined(__APPLE__)
28
# include <sys/sysctl.h>
29
+# elif defined(__FreeBSD__)
30
+# include <sys/auxv.h>
31
+
32
+static unsigned long getauxval(unsigned long key) {
33
+ unsigned long ret = 0;
34
+ if (elf_aux_info(key, &ret, sizeof(ret)) != 0)
35
+ return 0;
36
+ return ret;
37
+}
38
# endif
39
40
static inline int has_crc32_insn() {
0 commit comments