Skip to documentation
SLOP

tiny.simd.pairwiseAdd

Reference tiny.simd pairwiseAdd

Defined in arithmetic.

Called byCallstest sourcelib.simd.src.arithmetictest: Highway pairwise arithmetic int...private sourcelib.simd.src.arithmeticverifyPairwiseLaneTypeprivate sourcelib.simd.src.arithmeticaddLanearithmeticpairwiseAdd
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/simd/src/arithmetic.zig:360

zig
pub fn pairwiseAdd(comptime D: type, a: D.Vector, b: D.Vector) D.Vector {    if (D.lane_count < 2) @compileError("pairwiseAdd requires at least two lanes");    var result: D.Vector = undefined;    inline for (0..D.lane_count / 2) |pair| {        result[pair * 2] = addLane(D.Lane, a[pair * 2], a[pair * 2 + 1]);        result[pair * 2 + 1] = addLane(D.Lane, b[pair * 2], b[pair * 2 + 1]);    }    return result;}

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

zig
pub const pairwiseAdd = arithmetic.pairwiseAdd;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433