def div_sign
import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as U64import Base
90def div_sign(a: U64, +d: U32, negative: Bool) -> U64:
91 match negative:
92 case False{}:
93 div_small(a, d)
94 case True{}:
95 neg(div_small(neg(a), d))