tiny.simd.truncateTo
Defined in convert.
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
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |