Skip to documentation
SLOP

tiny.simd.truncateTo

Reference tiny.simd truncateTo

Defined in convert.

Called byCallsconvertorderedTruncate2Totest sourcelib.simd.src.converttest: Highway conversion entry points...private sourcelib.simd.src.convertsourceLaneprivate sourcelib.simd.src.convertvalidateLaneCountconverttruncateTo
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/simd/src/convert.zig:128

zig
pub fn truncateTo(comptime D: type, value: anytype) D.Vector {    const V = @TypeOf(value);    const From = sourceLane(V);    validateLaneCount(D, V);    if (@typeInfo(D.Lane) != .int or @typeInfo(From) != .int or        @typeInfo(D.Lane).int.signedness != .unsigned or        @typeInfo(From).int.signedness != .unsigned or        @bitSizeOf(D.Lane) >= @bitSizeOf(From))    {        @compileError("truncateTo requires narrower unsigned integer destinations");    }    return @truncate(value);}

Source: lib/simd/src/root.zig:813

zig
pub const truncateTo = convert.truncateTo;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433