tiny.simd.convertTo
Defined in convert.
Source
Source: lib/simd/src/convert.zig:6
zig
pub fn convertTo(comptime D: type, value: anytype) D.Vector { const V = @TypeOf(value); const From = sourceLane(V); validateLaneCount(D, V); if (@bitSizeOf(D.Lane) != @bitSizeOf(From)) { @compileError("convertTo requires equal source and destination lane widths"); } if ((@typeInfo(From) == .float) == (@typeInfo(D.Lane) == .float)) { @compileError("convertTo requires one floating-point and one integer lane type"); } return numericCast(D, value);}Source: lib/simd/src/root.zig:794
zig
pub const convertTo = convert.convertTo;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |