KernelGather.gather_width_when: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/kernel_gather.bend as KernelGather Lines 4-9 of stelliferous@0.0.2.0/kernel_gather.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/kernel_gather.bend&start_line=4&end_line=9 import Base # Clip once per leaf. A channel is one contiguous copy; padding never becomes # a store into the next channel. Both owners stay affine across the channel loop. def gather_width_when(inside: Bool,offset: U32,output_positions: U32,span: U32) -> U32: match inside: case False{}: 0 case True{}: U32.min(span,(output_positions - offset : U32)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.min https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub