tiny.simd.maskedGatherIndexOr
Defined in indexed.
Source
Source: lib/simd/src/indexed.zig:99
zig
pub fn maskedGatherIndexOr( comptime D: type, inactive: D.Vector, mask: D.Mask, base: []const D.Lane, indices: anytype,) D.Vector { validateIndices(D, @TypeOf(indices)); var result = inactive; inline for (0..D.lane_count) |lane_index| { if (mask[lane_index]) { const source = checkedIndex(indices[lane_index]); std.debug.assert(source < base.len); result[lane_index] = base[source]; } } return result;}Source: lib/simd/src/root.zig:275
zig
pub const maskedGatherIndexOr = indexed.maskedGatherIndexOr;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |