Fields.AcpiF.bits: def of bend-osdev-acpi@0.1.1.0 Import: import bend-osdev-acpi@0.1.1.0/fields.bend as Fields Lines 33-35 of bend-osdev-acpi@0.1.1.0/fields.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.1.0/fields.bend&start_line=33&end_line=35 import Base # bits k .. k + n - 1 of a word def AcpiF.bits(+v: U32, k: Nat, n: Nat) -> U32: U32.and(U32.shrn(v, k), U32.sub(U32.shln(1, n), 1)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shln https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub