def rm_near

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

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

1124def rm_near(+x: F64, +y: F64, one: Bool) -> F64:
1125  match one:
1126    case True{}:
1127      rm_fix(signbit(x), dexp(x), X.add(dmant(y), dmant(y)), dmant(x), W.U64{0, 0})
1128    case False{}:
1129      x

Uses (8)

Used by (1)