def in.div.v

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

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

1035# Divide: the remainder to its Target, the quotient to its own
1036def in.div.v(r: Result<&2, &2, E.AcpiError, AmlInts>) -> Result<&2, &2, E.AcpiError, AmlInts>:
1037  match r:
1038    case Fail{e}:
1039      Fail{e}
1040    case Done{AmlInts{+x, +y}}:
1041      in.div.pick(W.W64.is_zero(y), x, y)

Uses (5)

Used by (1)