def c2_cell

bendtorch-gpu@1.3.0.0 · main.bend:1511

import bendtorch-gpu@1.3.0.0/main.bend as BendtorchGpu
import Base

1511def c2_cell(+b: U32, +per: U32, +p: Nat, +bsz: U32, +c32: U32, s: C3S) -> C3S:
1512  match s:
1513    case C3S{st, z, bs}: c2_m(Nat.is_le(3n, p), b, ((U32.div(b, per) * c32 : U32) + (U32.mod(b, per) * bsz : U32) : U32), p, U32.shr(bsz), z, bs, Array.get(F32, st, ((U32.div(b, per) * 3 : U32) + 1 : U32)))

Uses (12)

Used by (1)