def div_sign

bend-collections@1.0.0.0 · src/math/u64.bend:90

import bend-collections@1.0.0.0/src/math/u64.bend as U64
import 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))

Uses (5)

Used by (1)