def AmlInt.of_bool
import bend-osdev-acpi@0.1.1.0/aml_value.bend as AmlValueimport Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
71# AML's True is Ones, False is Zero
72def AmlInt.of_bool(+wide: Bool, b: Bool) -> W.W64:
73 match b:
74 case True{}:
75 AmlInt.ones(wide)
76 case False{}:
77 W.W64.zero()