[med-svn] [Git][med-team/canu][master] Commit actual patch advertised in HEAD^^
Andreas Tille (@tille)
gitlab at salsa.debian.org
Thu Nov 5 12:10:12 GMT 2026
Andreas Tille pushed to branch master at Debian Med / canu
Commits:
39736eff by Andreas Tille at 2026-11-05T13:09:48+01:00
Commit actual patch advertised in HEAD^^
- - - - -
1 changed file:
- + debian/patches/nonx86.patch
Changes:
=====================================
debian/patches/nonx86.patch
=====================================
@@ -0,0 +1,240 @@
+Author: Michael R. Crusoe <crusoe at debian.org>
+ Andreas Tille <tille at debian.org>
+Last-Update: 2022-01-27
+Subject: Enable compilation on non-x86, non-arm, non-powerpc
+Origin: https://salsa.debian.org/med-team/parasail/-/blob/master/debian/patches/nonx86?ref_type=heads
+FIXME: Rather use Debian packaged parasail instead of this code copy
+
+--- a/src/utility/src/parasail/cpuid.c
++++ b/src/utility/src/parasail/cpuid.c
+@@ -60,6 +60,9 @@ int parasail_can_use_neon(void) { return
+
+ static void run_cpuid(uint32_t eax, uint32_t ecx, uint32_t* abcd)
+ {
++#if defined(__x86_64__) || defined(__i386__)
++// power & arm have their own cpuid_isa.c files
++
+ #if defined(_MSC_VER)
+ __cpuidex(abcd, eax, ecx);
+ #else
+@@ -73,6 +76,7 @@ static void run_cpuid(uint32_t eax, uint
+ "+a" (eax), "+c" (ecx), "=d" (edx) );
+ abcd[0] = eax; abcd[1] = ebx; abcd[2] = ecx; abcd[3] = edx;
+ #endif
++#endif
+ }
+
+
+@@ -82,6 +86,7 @@ static void run_cpuid(uint32_t eax, uint
+
+ static int check_4th_gen_intel_core_features(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ /* we only care about avx2, not the other features */
+ #if 0
+ const int the_4th_gen_features =
+@@ -90,26 +95,41 @@ static int check_4th_gen_intel_core_feat
+ const int the_4th_gen_features = _FEATURE_AVX2;
+ #endif
+ return _may_i_use_cpu_feature( the_4th_gen_features );
++#else
++ return 0;
++#endif
+ }
+
+ static int has_intel_avx512f_features(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ const unsigned long avx512f_features =
+ (_FEATURE_AVX512F | _FEATURE_AVX512ER | _FEATURE_AVX512PF | _FEATURE_AVX512CD);
+ return _may_i_use_cpu_feature( avx512f_features );
++#else
++ return 0;
++#endif
+ }
+
+ static int has_intel_avx512bw_features(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ const unsigned long avx512f_features =
+ (_FEATURE_AVX512VL | _FEATURE_AVX512BW | _FEATURE_AVX512DQ);
+ return _may_i_use_cpu_feature( avx512f_features );
++#else
++ return 0;
++#endif
+ }
+
+ static int has_intel_avx512vbmi_features(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ const unsigned long avx512vbmi_features = (_FEATURE_AVX512VBMI);
+ return _may_i_use_cpu_feature( avx512vbmi_features );
++#else
++ return 0;
++#endif
+ }
+
+ #else /* non-Intel compiler */
+@@ -188,6 +208,7 @@ static int check_4th_gen_intel_core_feat
+ }
+
+ static int has_intel_avx512f_features(void) {
++#if defined(__x86_64__) || defined(__i386__)
+ uint32_t abcd[4];
+ uint32_t osxsave_mask = (1U << 27); /* OSX. */
+ uint32_t avx512f_mask = (1U << 16) | /* AVX-512F */
+@@ -212,9 +233,13 @@ static int has_intel_avx512f_features(vo
+ return 0;
+
+ return 1;
++#else
++ return 0;
++#endif
+ }
+
+ static int has_intel_avx512bw_features(void) {
++#if defined(__x86_64__) || defined(__i386__)
+ uint32_t abcd[4];
+ uint32_t osxsave_mask = (1U << 27); /* OSX. */
+ uint32_t avx512bw_mask = (1U << 30) | /* AVX-512BW */
+@@ -237,10 +262,14 @@ static int has_intel_avx512bw_features(v
+ return 0;
+
+ return 1;
++#else
++ return 0;
++#endif
+ }
+
+ static int has_intel_avx512vbmi_features(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ uint32_t abcd[4];
+ uint32_t osxsave_mask = (1U << 27); /* OSX. */
+ uint32_t avx512vbmi_mask = (1U << 1); /* AVX-512VBMI */
+@@ -259,6 +288,9 @@ static int has_intel_avx512vbmi_features
+ return 0;
+
+ return 1;
++#else
++ return 0;
++#endif
+ }
+
+ #endif /* non-Intel compiler */
+@@ -266,6 +298,7 @@ static int has_intel_avx512vbmi_features
+
+ static int check_sse41(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ uint32_t info[4];
+ uint32_t nIds;
+
+@@ -279,11 +312,15 @@ static int check_sse41(void)
+ }
+
+ return 0;
++#else
++ return 0;
++#endif
+ }
+
+
+ static int check_sse2(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ uint32_t info[4];
+ uint32_t nIds;
+
+@@ -297,64 +334,91 @@ static int check_sse2(void)
+ }
+
+ return 0;
++#else
++ return 0;
++#endif
+ }
+
+
+ int parasail_can_use_avx512vbmi(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ static int avx512vbmi_features_available = -1;
+ /* test is performed once */
+ if (avx512vbmi_features_available < 0 )
+ avx512vbmi_features_available = has_intel_avx512vbmi_features();
+ return avx512vbmi_features_available;
++#else
++ return 0;
++#endif
+ }
+
+ int parasail_can_use_avx512bw(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ static int avx512bw_features_available = -1;
+ /* test is performed once */
+ if (avx512bw_features_available < 0 )
+ avx512bw_features_available = has_intel_avx512bw_features();
+ return avx512bw_features_available;
++#else
++ return 0;
++#endif
+ }
+
+ int parasail_can_use_avx512f(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ static int avx512f_features_available = -1;
+ /* test is performed once */
+ if (avx512f_features_available < 0 )
+ avx512f_features_available = has_intel_avx512f_features();
+ return avx512f_features_available;
++#else
++ return 0;
++#endif
+ }
+
+ int parasail_can_use_avx2(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ static int the_4th_gen_features_available = -1;
+ /* test is performed once */
+ if (the_4th_gen_features_available < 0 )
+ the_4th_gen_features_available = check_4th_gen_intel_core_features();
+
+ return the_4th_gen_features_available;
++#else
++ return 0;
++#endif
+ }
+
+ int parasail_can_use_sse41(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ static int can_use_sse41 = -1;
+ /* test is performed once */
+ if (can_use_sse41 < 0)
+ can_use_sse41 = check_sse41();
+
+ return can_use_sse41;
++#else
++ return 0;
++#endif
+ }
+
+ int parasail_can_use_sse2(void)
+ {
++#if defined(__x86_64__) || defined(__i386__)
+ static int can_use_sse2 = -1;
+ /* test is performed once */
+ if (can_use_sse2 < 0)
+ can_use_sse2 = check_sse2();
+
+ return can_use_sse2;
++#else
++ return 0;
++#endif
+ }
+
+ int parasail_can_use_altivec(void)
View it on GitLab: https://salsa.debian.org/med-team/canu/-/commit/39736eff490bce5e39eaaea00257e345b9a356af
--
View it on GitLab: https://salsa.debian.org/med-team/canu/-/commit/39736eff490bce5e39eaaea00257e345b9a356af
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261105/54b96fb4/attachment-0001.htm>
More information about the debian-med-commit
mailing list