From b0e0f210c65cbf2eb58991209632fb5100f47e23 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 18 Jul 2023 21:10:39 -0400 Subject: [PATCH] 2- and 4-byte Where with unpack and table --- src/singeli/src/slash.singeli | 56 ++++++++++++++++++++++++++--------- 1 file changed, 42 insertions(+), 14 deletions(-) diff --git a/src/singeli/src/slash.singeli b/src/singeli/src/slash.singeli index 11c6a324..d81e2ef7 100644 --- a/src/singeli/src/slash.singeli +++ b/src/singeli/src/slash.singeli @@ -46,15 +46,13 @@ def maketab{l,w} = { def top = (fold{bind{flat_table,+}, l**iota{2}} - 1)%(1<>(64-w) + 1) & (1<>width{S}}) + top := each{make_top, replicate{{S}=>S>width{S}}) - top := each{make_top, replicate{{S}=>S