Skip to documentation
SLOP

tiny.simd.gatherIndex

Reference tiny.simd gatherIndex

Defined in indexed.

Called byCallsCuckoo2x2querytest sourcelib.simd.src.indexedtest: Highway indexed gather and scat...private sourcelib.simd.src.phast.builder.Builderunoccupiedprivate sourcelib.simd.src.indexedcheckedIndexprivate sourcelib.simd.src.indexedvalidateIndicesindexedgatherIndex
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433