def neg

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

import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as U64
import Base

45# Two's-complement negation.
46def neg(a: U64) -> U64:
47  U64{+lo, +hi} = a
48  neg_fin(U32.inc(U32.not(lo)), hi)

Uses (4)

Used by (4)