From 82ac059b75ebef3cc81776127bfc7538175ef502 Mon Sep 17 00:00:00 2001 From: dzaima Date: Fri, 30 Sep 2022 20:06:32 +0300 Subject: [PATCH] =?UTF-8?q?disable=20clmul=20=E2=89=A0`=20when=20pclmul=20?= =?UTF-8?q?not=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/md1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins/md1.c b/src/builtins/md1.c index f3787916..1b1e4152 100644 --- a/src/builtins/md1.c +++ b/src/builtins/md1.c @@ -108,7 +108,7 @@ B each_c2(Md1D* d, B w, B x) { B f = d->f; return homFil2(f, eachd(f, w, x), wf, xf); } -#if SINGELI +#if SINGELI && __PCLMUL__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-variable" #include "../singeli/gen/neq.c" @@ -116,7 +116,7 @@ B each_c2(Md1D* d, B w, B x) { B f = d->f; #endif B scan_ne(u64 p, u64* xp, u64 ia) { u64* rp; B r=m_bitarrv(&rp,ia); -#if SINGELI +#if SINGELI && __PCLMUL__ clmul_scan_ne(p, xp, rp, BIT_N(ia)); #else for (usz i = 0; i < BIT_N(ia); i++) {