Skip to documentation
SLOP

tiny.simd.gatherOffset

Reference tiny.simd gatherOffset

Defined in indexed.

Called byCallstest sourcelib.simd.src.indexedtest: Highway masked and byte-offset ...private sourcelib.simd.src.indexedoffsetIndexprivate sourcelib.simd.src.indexedvalidateIndicesindexedgatherOffset
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/simd/src/indexed.zig:127

zig
pub fn gatherOffset(comptime D: type, base: []const D.Lane, offsets: anytype) D.Vector {    validateIndices(D, @TypeOf(offsets));    var result: D.Vector = undefined;    inline for (0..D.lane_count) |lane_index| {        const source = offsetIndex(D.Lane, offsets[lane_index]);        std.debug.assert(source < base.len);        result[lane_index] = base[source];    }    return result;}

Source: lib/simd/src/root.zig:271

zig
pub const gatherOffset = indexed.gatherOffset;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433