tiny.simd.gatherIndex
Defined in indexed.
Source
Source: lib/simd/src/indexed.zig:66
zig
pub fn gatherIndex(comptime D: type, base: []const D.Lane, indices: anytype) D.Vector { validateIndices(D, @TypeOf(indices)); var result: D.Vector = undefined; inline for (0..D.lane_count) |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:272
zig
pub const gatherIndex = indexed.gatherIndex;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |