def in.div.pick

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

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/error.bend as E

1028def in.div.pick(z: Bool, +x: W.W64, +y: W.W64) -> Result<&2, &2, E.AcpiError, AmlInts>:
1029  match z:
1030    case True{}:
1031      Fail{E.AcpiAmlDivZero{}}
1032    case False{}:
1033      Done{AmlInts{W.W64.div(x, y), W.W64.mod(x, y)}}

Uses (7)

Used by (1)