def le_signed
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as U64import Base
68# a <= b as signed 64-bit integers.
69def le_signed(a: U64, b: U64) -> Bool:
70 U64{alo, +ahi} = a
71 U64{blo, +bhi} = b
72 le_sign(alo, ahi, blo, bhi, U32.is_ge(ahi, 2147483648), U32.is_ge(bhi, 2147483648))