def in.shift.pick

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

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

954def in.shift.pick(big: Bool, left: Bool, +wide: Bool, +x: W.W64, +n: Nat) -> W.W64:
955  match big:
956    case True{}:
957      W.W64.zero()
958    case False{}:
959      match left:
960        case True{}:
961          V.AmlInt.fit(wide, W.W64.shl(x, n))
962        case False{}:
963          W.W64.shr(x, n)

Uses (7)

Used by (1)