tiny.simd.tableLookupLanes
Defined in table.
Source
Source: lib/simd/src/table.zig:50
zig
pub fn tableLookupLanes(comptime D: type, table: D.Vector, indices: anytype) D.Vector { const index_info = validateLaneIndices(D, @TypeOf(indices)); const table_lanes: [D.lane_count]D.Lane = @bitCast(table); const index_lanes: [index_info.len]index_info.child = @bitCast(indices); var result: [D.lane_count]D.Lane = undefined; inline for (0..D.lane_count) |lane| { const index = checkedIndex(index_lanes[lane]); std.debug.assert(index < D.lane_count); result[lane] = table_lanes[index]; } return @bitCast(result);}Source: lib/simd/src/root.zig:877
zig
pub const tableLookupLanes = table.tableLookupLanes;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |