def in.int1

bend-osdev-acpi@0.1.1.0 · aml_interp.bend:1091

import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V

1091def in.int1(+op: Nat, +wide: Bool, +x: W.W64) -> W.W64:
1092  match op:
1093    case 128n:
1094      V.AmlInt.fit(wide, W.W64.not(x))
1095    case 129n:
1096      W.W64.from_nat(in.fsb.go(64n, x, 0n, True{}, 0n))
1097    case _:
1098      W.W64.from_nat(in.fsb.go(64n, x, 0n, False{}, 0n))

Uses (7)

Used by (1)