def selected

stelliferous@0.0.2.0 · math_fp32.bend:35

import stelliferous@0.0.2.0/math_fp32.bend as MathFp32
import Base

35def selected(+mask: U32,yes: F32,+no: F32) -> F32:
36  from_bits(U32.xor(F32.bits(no),U32.and(U32.xor(F32.bits(yes),F32.bits(no)),mask)))

Uses (6)

Used by (4)