def am_eq

bend-collections-laws-crypto@1.0.0.0 · src/math/f64.bend:232

import bend-collections-laws-crypto@1.0.0.0/src/math/f64.bend as F64
import 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

232def am_eq(+x: F64, +s: Bool, +e: Nat, +fa: W.U64, +fb: W.U64) -> F64:
233  match e:
234    case 0n:
235      pack(s, 0n, X.add(fa, fb))
236    case _:
237      am_eq_n(x, s, e, fa, fb, Nat.is_eq(e, 2047n))

Uses (8)

Used by (1)