Skip to documentation
SLOP

tiny.simd.maskedGatherIndexOr

Reference tiny.simd maskedGatherIndexOr

Defined in indexed.

Called byCallsindexedgatherIndexNOrindexedmaskedGatherIndextest sourcelib.simd.src.indexedtest: Highway masked and byte-offset ...private sourcelib.simd.src.indexedcheckedIndexprivate sourcelib.simd.src.indexedvalidateIndicesindexedmaskedGatherIndexOr
Static calls · unresolved targets: 0 · external targets: 0.

Source

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

zig
pub fn maskedGatherIndexOr(    comptime D: type,    inactive: D.Vector,    mask: D.Mask,    base: []const D.Lane,    indices: anytype,) D.Vector {    validateIndices(D, @TypeOf(indices));    var result = inactive;    inline for (0..D.lane_count) |lane_index| {        if (mask[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:275

zig
pub const maskedGatherIndexOr = indexed.maskedGatherIndexOr;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433