pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

canu: Hypothetically add support for any 64-bit processor



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon4000%gmail.com@localhost>
Pushed By:	outpaddling
Date:		Sat May 20 11:59:53 2023 -0500
Changeset:	4fef4f059d6f68bb74565754afd891cefeb41d15

Modified Files:
	canu/Makefile
	canu/files/cpuid_arm.c
	canu/files/cpuid_ppc.c
Added Files:
	canu/files/cpuid_any.c

Log Message:
canu: Hypothetically add support for any 64-bit processor

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4fef4f059d6f68bb74565754afd891cefeb41d15

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 canu/Makefile          |  2 ++
 canu/files/cpuid_any.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++
 canu/files/cpuid_arm.c |  1 -
 canu/files/cpuid_ppc.c |  1 -
 4 files changed, 54 insertions(+), 2 deletions(-)

diffs:
diff --git a/canu/Makefile b/canu/Makefile
index 321273d8ba..8b0820d144 100644
--- a/canu/Makefile
+++ b/canu/Makefile
@@ -54,6 +54,8 @@ post-extract:
 	${CP} ${FILESDIR}/cpuid_arm.c ${WRKSRC}/utility/src/parasail/cpuid.c
 .elif ${MACHINE_ARCH} == "powerpc64"
 	${CP} ${FILESDIR}/cpuid_ppc.c ${WRKSRC}/utility/src/parasail/cpuid.c
+.elif ${MACHINE_ARCH} != "amd64"
+	${CP} ${FILESDIR}/cpuid_any.c ${WRKSRC}/utility/src/parasail/cpuid.c
 .endif
 
 # Upstream does not want to use lib/perl5/site_perl
diff --git a/canu/files/cpuid_any.c b/canu/files/cpuid_any.c
new file mode 100644
index 0000000000..be03bd4a47
--- /dev/null
+++ b/canu/files/cpuid_any.c
@@ -0,0 +1,52 @@
+/**
+ * @file
+ *
+ * @author jeffrey.daily%gmail.com@localhost
+ *
+ * Copyright (c) 2015 Battelle Memorial Institute.
+ *
+ * For non-intel platforms, stub out the intel feature tests.
+ */
+#include "config.h"
+
+#include "parasail/cpuid.h"
+
+int parasail_can_use_avx512vbmi()
+{
+    return 0;
+}
+
+int parasail_can_use_avx512bw()
+{
+    return 0;
+}
+
+int parasail_can_use_avx512f()
+{
+    return 0;
+}
+
+int parasail_can_use_avx2()
+{
+    return 0;
+}
+
+int parasail_can_use_sse41()
+{
+    return 0;
+}
+
+int parasail_can_use_sse2()
+{
+    return 0;
+}
+
+int parasail_can_use_altivec()
+{
+    return 0;
+}
+
+int parasail_can_use_neon()
+{
+    return 0;
+}
diff --git a/canu/files/cpuid_arm.c b/canu/files/cpuid_arm.c
index 3b35be06c0..147619716b 100644
--- a/canu/files/cpuid_arm.c
+++ b/canu/files/cpuid_arm.c
@@ -54,4 +54,3 @@ int parasail_can_use_neon()
     return 0;
 #endif
 }
-
diff --git a/canu/files/cpuid_ppc.c b/canu/files/cpuid_ppc.c
index 4a832a90a3..fd0abbd64d 100644
--- a/canu/files/cpuid_ppc.c
+++ b/canu/files/cpuid_ppc.c
@@ -54,4 +54,3 @@ int parasail_can_use_neon()
 {
     return 0;
 }
-


Home | Main Index | Thread Index | Old Index