AmlPkglength.pk.enc: def of bend-osdev-acpi@0.1.2.0 Import: import bend-osdev-acpi@0.1.2.0/aml_pkglength.bend as AmlPkglength Lines 47-48 of bend-osdev-acpi@0.1.2.0/aml_pkglength.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.2.0/aml_pkglength.bend&start_line=47&end_line=48 import Base def pk.enc(+v: U32) -> List<&2, U32>: pk.enc.pick(U32.is_eq(U32.shrn(v, 6n), 0), U32.is_eq(U32.shrn(v, 12n), 0), U32.is_eq(U32.shrn(v, 20n), 0), v) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_pkglength.bend&name=pk.enc.pick