void-packages/srcpkgs/linbox/patches/294.patch

39 lines
1.3 KiB
Diff

From f81a1f4a5e0835b7a0f3bb88a0fcbbaa32174cfa Mon Sep 17 00:00:00 2001
From: Cyril Bouvier <cyril.bouvier@lirmm.fr>
Date: Wed, 15 Dec 2021 16:00:39 +0100
Subject: [PATCH] Only register uint128_t as a TypeName when it's available
---
benchmarks/benchmark-fft.C | 2 ++
benchmarks/benchmark-polynomial-matrix-mul-fft.C | 2 ++
2 files changed, 4 insertions(+)
diff --git a/benchmarks/benchmark-fft.C b/benchmarks/benchmark-fft.C
index 39b86c9d9..59a8be57c 100644
--- a/benchmarks/benchmark-fft.C
+++ b/benchmarks/benchmark-fft.C
@@ -54,7 +54,9 @@ REGISTER_TYPE_NAME(double);
REGISTER_TYPE_NAME(uint16_t);
REGISTER_TYPE_NAME(uint32_t);
REGISTER_TYPE_NAME(uint64_t);
+#ifdef __FFLASFFPACK_HAVE_INT128
REGISTER_TYPE_NAME(uint128_t);
+#endif
REGISTER_TYPE_NAME(Modular);
REGISTER_TYPE_NAME(ModularExtended);
diff --git a/benchmarks/benchmark-polynomial-matrix-mul-fft.C b/benchmarks/benchmark-polynomial-matrix-mul-fft.C
index e9b184bcf..7bf17f33e 100644
--- a/benchmarks/benchmark-polynomial-matrix-mul-fft.C
+++ b/benchmarks/benchmark-polynomial-matrix-mul-fft.C
@@ -65,7 +65,9 @@ REGISTER_TYPE_NAME(double);
REGISTER_TYPE_NAME(uint16_t);
REGISTER_TYPE_NAME(uint32_t);
REGISTER_TYPE_NAME(uint64_t);
+#ifdef __FFLASFFPACK_HAVE_INT128
REGISTER_TYPE_NAME(uint128_t);
+#endif
REGISTER_TYPE_NAME(Modular);
REGISTER_TYPE_NAME(ModularExtended);