Skip to documentation
SLOP

tiny.simd.truncateStore

Reference tiny.simd truncateStore

Defined in memory.

Called byCallstest sourcelib.simd.src.memorytest: Highway safe copy fill and trun...private sourcelib.simd.src.memoryoutputLanememorytruncateStore
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433