def q_clamp

bend-collections@1.0.0.0 · src/math/w64.bend:289

import bend-collections@1.0.0.0/src/math/w64.bend as W64
import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W

289# min(q, 2^32 - 1)
290def q_clamp(+q: W.U64) -> U32:
291  q_clamp_z(lo(q), U32.is_zero(hi(q)))

Uses (6)

Used by (1)