get rid of the single isptr usage
This commit is contained in:
parent
c1662c83de
commit
6eb454f859
@ -7,7 +7,7 @@ def dat_types = tup{...ind_types, u64}
|
|||||||
|
|
||||||
# Indices and Replicate using plus- or max-scan
|
# Indices and Replicate using plus- or max-scan
|
||||||
def scan_core{upd, set, scan, rp:*T, wp:W, s:(usz)} = {
|
def scan_core{upd, set, scan, rp:*T, wp:W, s:(usz)} = {
|
||||||
def getw{j} = if (isptr{W}) cast_i{usz,load{wp,j}} else wp
|
def getw{j} = match (W) { {*_} => cast_i{usz,load{wp,j}}; {_} => wp }
|
||||||
b:usz = 1<<10
|
b:usz = 1<<10
|
||||||
k:usz = 0; j:usz = 0; ij:=getw{j}
|
k:usz = 0; j:usz = 0; ij:=getw{j}
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user