def select

bend-collections@1.0.0.0 · src/crypto/secp256k1/field.bend:135

import bend-collections@1.0.0.0/src/crypto/secp256k1/field.bend as Field
import Base
import bend-collections@1.0.0.0/src/crypto/secp256k1/limbs.bend as L

135# b ? x : y, branch-free, for b in {0, 1}
136def select(+b: Nat, x: List<&2, Nat>, y: List<&2, Nat>) -> List<&2, Nat>:
137  L.select(b, x, y)

Uses (3)

Used by (3)