U32.U32Nat.half: def of bend-osdev-u32@0.1.0.0 Import: import bend-osdev-u32@0.1.0.0/u32.bend as U32 Lines 32-42 of bend-osdev-u32@0.1.0.0/u32.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-u32@0.1.0.0/u32.bend&start_line=32&end_line=42 import Base # n / 2, rounded down def U32Nat.half(n: Nat) -> Nat: match n: case 0n: 0n case 1n+p: match p: case 0n: 0n case 1n+q: 1n+U32Nat.half(q) Uses (1): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat