tiny.simd.u8FromU32
Defined in convert.
Source
Source: lib/simd/src/convert.zig:142
zig
pub fn u8FromU32(comptime D: type, value: anytype) D.Vector { const V = @TypeOf(value); validateLaneCount(D, V); if (D.Lane != u8 or sourceLane(V) != u32) { @compileError("u8FromU32 requires u32 sources and a u8 destination"); } std.debug.assert(@reduce(.And, value < @as(V, @splat(256)))); return @truncate(value);}Source: lib/simd/src/root.zig:814
zig
pub const u8FromU32 = convert.u8FromU32;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |