def div_cls
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
419def div_cls(+s: Bool, +ea: Nat, +fa: W.U64, +eb: Nat, +fb: W.U64, top: Bool) -> F64:
420 match top:
421 case True{}:
422 inf_or_nan(s, Bool.or(nz(fa), Nat.is_eq(eb, 2047n)))
423 case False{}:
424 div_b(s, ea, fa, eb, fb, Nat.is_eq(eb, 2047n))