From 8add95b7ab398571fb216ec982d892c8bba130b1 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 17 Jul 2023 16:20:30 -0400 Subject: [PATCH] Remove BMI2 where/compress methods --- src/singeli/src/slash.singeli | 37 ----------------------------------- 1 file changed, 37 deletions(-) diff --git a/src/singeli/src/slash.singeli b/src/singeli/src/slash.singeli index f15480f5..82fbc340 100644 --- a/src/singeli/src/slash.singeli +++ b/src/singeli/src/slash.singeli @@ -155,43 +155,6 @@ fn slash{c, T & hasarch{'X86_64'} & T<=(if (c) i8 else i32)}(w:*u64, x:arg{c,T}, } } -def tab{n,l} = if (n==0) tup{0} else { - def m = n-1 - def k = (1< {c:= loadu{xv}; xv+= 1; c} - } else { - def n = 64/wt - x:u64 = b{iota{n}} - def add = b{n**n} - {} => {c:= x; x+= add; c} - } - @for_special_buffered{r,8} (w in *u8~~w over sum) { - pc:= popc{w} - def out{r,e} = storeu{*u64~~r, 0, pext{promote{u64,X{}}, e}} - if (wt == 8) { - out{r, pdep{promote{u64, w}, u64~~b{8**1}}*255} - } else { - def step{r, w} = out{r, vgLoad{c16lut, w}} - h := w&0xf - step{r, h} - step{r+popcRand{h}, w>>4} - } - r+= pc - } -} - def thresh{c, T==i8 & hasarch{'AVX2'}} = 32 fn slash{c, T==i8 & hasarch{'AVX2'}}(w:*u64, x:arg{c,T}, r:*T, l:u64, sum:u64) : void = { def I = [32]i8