def AmlInt.fit

bend-osdev-acpi@0.1.1.0 · aml_value.bend:60

import bend-osdev-acpi@0.1.1.0/aml_value.bend as AmlValue
import Base
import bend-osdev-word64@0.1.1.0/word64.bend as W

60# the low 32 bits only, when the block is 32-bit
61def AmlInt.fit(wide: Bool, +v: W.W64) -> W.W64:
62  match wide:
63    case True{}:
64      v
65    case False{}:
66      W.W64.from_u32(W.W64.lo(v))

Uses (4)

Used by (12)