tiny.simd.truncateStore
Defined in memory.
Source
Source: lib/simd/src/memory.zig:120
zig
pub fn truncateStore(comptime D: type, value: D.Vector, output: anytype) void { const OutputLane = outputLane(@TypeOf(output)); if (comptime @typeInfo(D.Lane) != .int or @typeInfo(OutputLane) != .int or @typeInfo(D.Lane).int.signedness != .unsigned or @typeInfo(OutputLane).int.signedness != .unsigned or @bitSizeOf(OutputLane) >= @bitSizeOf(D.Lane)) { @compileError("truncateStore requires a narrower unsigned integer output"); } std.debug.assert(output.len >= D.lane_count); inline for (0..D.lane_count) |index| output[index] = @truncate(value[index]);}Source: lib/simd/src/root.zig:236
zig
pub const truncateStore = memory.truncateStore;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |