From cd16c8a1c70c4743de295878787434aad2065141 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sun, 13 Nov 2022 11:03:16 -0500 Subject: [PATCH] =?UTF-8?q?Blocked=204-byte=20=E2=8D=8Bbool=20and=20?= =?UTF-8?q?=E2=8D=92bool=20with=20Singeli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/slash.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/builtins/slash.c b/src/builtins/slash.c index 1687a102..434dd803 100644 --- a/src/builtins/slash.c +++ b/src/builtins/slash.c @@ -444,12 +444,27 @@ B grade_bool(B x, usz xia, bool up) { if (xia <= 128) { BMI_GRADE(8) } else { BMI_GRADE(16) } #undef BMI_GRADE decG(notx); + } else if (xia <= 1ull<<31) { + i32* rp0; r = m_i32arrv(&rp0, xia); + i32* rp1 = rp0 + l0; + if (!up) { i32* t=rp1; rp1=rp0; rp0=t; } + usz b = 256; TALLOC(u8, buf, b+b/8); + u64* xp1 = xp; + u64* xp0 = (u64*)(buf + b); + for (usz i=0; ixia-i) b=xia-i; + for (usz j=0; j