From 093beda3940bf772d6584f33b5ce8dccf197c243 Mon Sep 17 00:00:00 2001 From: dzaima Date: Fri, 3 Mar 2023 13:27:42 +0200 Subject: [PATCH] =?UTF-8?q?faster=20path=20for=20=F0=9D=95=A8/=F0=9D=95=A9?= =?UTF-8?q?=20with=20non-boolean=20=F0=9D=95=A8=20with=20sum=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/builtins/slash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/builtins/slash.c b/src/builtins/slash.c index 63b88d7a..5ad51a74 100644 --- a/src/builtins/slash.c +++ b/src/builtins/slash.c @@ -676,9 +676,11 @@ B slash_c2(B t, B w, B x) { s = usum(w); if (xl>6 || (xl<3 && xl!=0)) goto arrW_base; if (s<=wia) { + if (s==0) { r = zeroCells(x); goto decWX_ret; } w=num_squeezeChk(w); we=TI(w,elType); if (we==el_bit) goto wbool; } + // s≠0 now if (RARE(TI(x,elType)==el_B)) { // Slow case arrW_base: