tiny.simd.sumsOf2
Defined in reduce.
Source
Source: lib/simd/src/reduce.zig:79
zig
pub fn sumsOf2(comptime D: type, value: D.Vector) D.repartition(wideLane(D.Lane)).Vector { const W = wideLane(D.Lane); const R = D.repartition(W); if (D.lane_count < 2) @compileError("sumsOf2 requires at least two lanes"); var result: R.Vector = undefined; inline for (0..R.lane_count) |index| { result[index] = widen(W, value[index * 2]) + widen(W, value[index * 2 + 1]); } return result;}Source: lib/simd/src/root.zig:921
zig
pub const sumsOf2 = reduce.sumsOf2;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |