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