fn select(on: bool, x: Limb, y: Limb) Limb
Returns x if on is true, otherwise y.
on: bool
x: Limb
y: Limb
881 882 883 884
fn select(on: bool, x: Limb, y: Limb) Limb { const mask = @as(Limb, 0) -% @intFromBool(on); return y ^ (mask & (y ^ x)); }
Returns x if on is true, otherwise y.