def sq_div
import bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend as F64import Base
import bend-collections-laws-crypto@1.0.0.0/src/math/u64.bend as W
import bend-collections-laws-crypto@1.0.0.0/src/math/w64.bend as X
468def sq_div(+e: Nat, +s: U32, p: W.U64 & U32) -> F64:
469 (+q, +u) = p
470 sq_clamp(e, s, q, u, U32.is_zero(X.hi(q)))