Skip to documentation
SLOP

tiny.simd.addSub

Reference tiny.simd addSub

Defined in arithmetic.

Called byCallstest sourcelib.simd.src.arithmetictest: Highway absolute saturating div...private sourcelib.simd.src.arithmeticaddLaneprivate sourcelib.simd.src.arithmeticsubLanearithmeticaddSub
Static calls · unresolved targets: 0 · external targets: 0.

Source

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

zig
pub fn addSub(comptime D: type, a: D.Vector, b: D.Vector) D.Vector {    var result: D.Vector = undefined;    inline for (0..D.lane_count) |index| {        result[index] = if (index & 1 == 0)            subLane(D.Lane, a[index], b[index])        else            addLane(D.Lane, a[index], b[index]);    }    return result;}

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

zig
pub const addSub = arithmetic.addSub;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433