U64.signed_quotient: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/spec/math/u64.bend as U64 Lines 24-30 of bend-collections-laws-math@1.0.0.0/spec/math/u64.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/spec/math/u64.bend&start_line=24&end_line=30 import Base import bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend as N # the quotient of a signed word: rounded toward zero, as the magnitude's def signed_quotient(w: Word(64n), neg: Bool, +d: U32) -> Word(64n): match neg: case False{}: N.unsigned_quotient(64n, w, d) case True{}: N.negative_quotient(64n, w, d) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend&name=negative_quotient https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend&name=unsigned_quotient