def ij_of
import bendtorch-gpu@1.3.0.0/main.bend as BendtorchGpuimport Base
747def ij_of(+e: U32, +t32: U32) -> IJ:
748 +np = U32.div((t32 + 1 : U32), 2)
749 +c = U32.mod(e, (t32 + 1 : U32))
750 +pr = U32.div(e, (t32 + 1 : U32))
751 +p = U32.mod(pr, np)
752 +lo = U32.is_le(c, p)
753 IJ{Bool.or(lo, U32.is_ne(((t32 - 1 : U32) - p : U32), p)), U32.div(pr, np), Bool.pick(U32, lo, p, ((t32 - 1 : U32) - p : U32)), Bool.pick(U32, lo, c, ((c - p : U32) - 1 : U32))}