tiny.simd.fill
Defined in algo.
Source
Source: lib/simd/src/algo.zig:9
zig
pub fn fill(comptime D: type, output: []D.Lane, value: D.Lane) void { const vector: D.Vector = @splat(value); var index: usize = 0; while (index + D.lane_count <= output.len) : (index += D.lane_count) { memory.store(D, vector, output[index..]); } if (index != output.len) memory.storeN(D, vector, output[index..], output.len - index);}Source: lib/simd/src/root.zig:454
zig
pub const fill = algo.fill;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |