tiny.simd.sumsOf8AbsDiff
Defined in reduce.
Source
Source: lib/simd/src/reduce.zig:118
zig
pub fn sumsOf8AbsDiff( comptime D: type, a: D.Vector, b: D.Vector,) D.repartition(wideLane(wideLane(wideLane(D.Lane)))).Vector { requireByteLane(D, "sumsOf8AbsDiff"); const W = wideLane(wideLane(wideLane(D.Lane))); const R = D.repartition(W); if (D.lane_count < 8) @compileError("sumsOf8AbsDiff requires at least eight lanes"); var result: R.Vector = undefined; inline for (0..R.lane_count) |index| { var total: W = 0; inline for (0..8) |offset| { total += absoluteDifference(W, a[index * 8 + offset], b[index * 8 + offset]); } result[index] = total; } return result;}Source: lib/simd/src/root.zig:924
zig
pub const sumsOf8AbsDiff = reduce.sumsOf8AbsDiff;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |