def ar_big

bend-collections@1.0.0.0 · src/math/f64.bend:1214

import bend-collections@1.0.0.0/src/math/f64.bend as F64
import Base
import bend-collections@1.0.0.0/src/math/num.bend as N
import bend-collections@1.0.0.0/src/math/u64.bend as W
import bend-collections@1.0.0.0/src/math/w64.bend as X

1214def ar_big(+s: Bool, +w: W.U64, +k: Nat, fits: Bool) -> Result<&2, &2, N.NumError, Ratio>:
1215  match fits:
1216    case True{}:
1217      Done{Ratio{s, X.shl(w, k), 0n}}
1218    case False{}:
1219      Fail{N.Overflow{}}

Uses (7)

Used by (1)