Check.main: def of bend-osdev-word64@0.1.1.0 Import: import bend-osdev-word64@0.1.1.0/check.bend as Check Lines 12-29 of bend-osdev-word64@0.1.1.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-word64@0.1.1.0/check.bend&start_line=12&end_line=29 import Base import bend-osdev-word64@0.1.1.0/word64.bend as W def main() -> IO(Unit): do IO: IO.print(W.W64.show(W.W64.max())) IO.print(W.W64.show_hex(W.W64.add(W.W64.max(), W.W64.one()))) IO.print(W.W64.show_hex(W.W64.mul(W.W64.from_u32(4294967295), W.W64.from_u32(4294967295)))) IO.print(W.W64.show_hex(W.W64.shl(W.W64.from_parts(3735928559, 3405691582), 8n))) IO.print(U32.show(W.W64.hi(W.W64.from_parts(7, 9)))) IO.print(W.W64.show(W.W64.div(trillion(), W.W64.from_u32(7)))) IO.print(W.W64.show(W.W64.mod(trillion(), W.W64.from_u32(7)))) IO.print(Bool.show(W.W64.is_lt(W.W64.from_parts(1, 0), W.W64.from_parts(0, 4294967295)))) IO.print(dm(W.W64.from_parts(3735928559, 3405691582), W.W64.from_parts(0, 0))) IO.print(dm(W.W64.from_parts(4294967295, 4294967295), W.W64.from_parts(0, 1))) IO.print(dm(W.W64.from_parts(0, 5), W.W64.from_parts(0, 7))) IO.print(dm(W.W64.from_parts(2147483648, 5), W.W64.from_parts(2147483648, 5))) IO.print(dm(W.W64.from_parts(4294967295, 4294967295), W.W64.from_parts(2147483648, 1))) IO.print(dm(W.W64.from_parts(2147483648, 3), W.W64.from_parts(0, 3))) IO.print(dm(W.W64.from_parts(4294967295, 4294967295), W.W64.from_parts(1, 1))) IO.print(dm(W.W64.from_parts(305419896, 2596069104), W.W64.from_parts(0, 267242409))) Uses (21): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.print https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/check.bend&name=dm https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/check.bend&name=trillion https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.add https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.div https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.from_parts https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.from_u32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.hi https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.is_lt https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.max https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.mod https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.mul https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.one https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.shl https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.show https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.show_hex