1 import Base 2 import ./numeric.bend as N 3 4 # Mathematical division of the interpreted input. Matching the word before 5 # interpreting it avoids eager unary expansion of fixed denominator constants; 6 # this is not a binary-division algorithm or an implementation import. 7 def quotient(n: Nat, word: Word(n), d: U32) -> Word(n): 8 N.unsigned_quotient(n, word, d)