Word64.W64.bits.lo: def of bend-osdev-word64@0.1.1.0 Import: import bend-osdev-word64@0.1.1.0/word64.bend as Word64 Lines 29-39 of bend-osdev-word64@0.1.1.0/word64.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&start_line=29&end_line=39 import Base # Splitting a Word(m + n) into its low m and high n bits (bits are stored # least significant first), and joining them back. Named under W64, not Word, # so that they cannot clash with Base if it gains Word.lo, Word.hi or Word.cat. def W64.bits.lo(m: Nat, n: Nat, w: Word(Nat.add(m, n))) -> Word(m): match m: case 0n: WNil{} case 1n+p: match w: case WCon{h, t}: WCon{h, W64.bits.lo(p, n, t)} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil