def block_leaf

bend-visgraph@2.0.0.0 · parallel.bend:33

import bend-visgraph@2.0.0.0/parallel.bend as Parallel
import Base
import bend-visgraph@2.0.0.0/visgraph.bend as VG

33# It forks nothing, so the runtime runs it once the tree has grown, on any
34# idle thread; work done before a fork runs while the tree grows, on a few
35# threads.
36def block_leaf(+s: U32, +e: U32, c: VG.Cols) -> Blocks:
37  VG.Cols{ys, lefts, rights} = c
38  block_of(VG.block_pass(U32.to_nat((e - s : U32)), s, Array.get(F32, ys, s), lefts, rights))

Uses (9)

Used by (1)