Skip to documentation
SLOP

tiny.simd.twoTablesLookupLanes

Reference tiny.simd twoTablesLookupLanes

Defined in table.

Called byCallstest sourcelib.simd.src.tabletest: Highway lane tables gather acro...private sourcelib.simd.src.tablecheckedIndexprivate sourcelib.simd.src.tablevalidateLaneIndicestabletwoTablesLookupLanes
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433