tiny.simd.twoTablesLookupLanes
Defined in table.
Source
Source: lib/simd/src/table.zig:63
zig
pub fn twoTablesLookupLanes( comptime D: type, first: D.Vector, second: D.Vector, indices: anytype,) D.Vector { const index_info = validateLaneIndices(D, @TypeOf(indices)); const first_lanes: [D.lane_count]D.Lane = @bitCast(first); const second_lanes: [D.lane_count]D.Lane = @bitCast(second); 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 * 2); result[lane] = if (index < D.lane_count) first_lanes[index] else second_lanes[index - D.lane_count]; } return @bitCast(result);}Source: lib/simd/src/root.zig:878
zig
pub const twoTablesLookupLanes = table.twoTablesLookupLanes;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |