Add @select

@select(
    comptime T: type,
    pred: std.meta.Vector(len, bool),
    a: std.meta.Vector(len, T),
    b: std.meta.Vector(len, T)
) std.meta.Vector(len, T)

Constructs a vector from a & b, based on the values in the predicate vector. For indices where the predicate value is true, the corresponding
element from the a vector is selected, and otherwise from b.
50a29f7c21Robin Voetter committed on 7/27/2021, 12:05:48 AM· committed by Andrew Kelleyparentfc105f2
12 files changedLine totals unavailable