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