tiny.simd.MakeUnsigned
Defined in tag.
Source
Source: lib/simd/src/tag.zig:224
zig
pub fn MakeUnsigned(comptime T: type) type { if (isBFloat16(T)) return u16; return switch (@typeInfo(T)) { .int => |info| switch (info.bits) { 8, 16, 32, 64, 128 => @Int(.unsigned, info.bits), else => @compileError("unsupported Highway integer width"), }, .float => |info| switch (info.bits) { 16 => u16, 32 => u32, 64 => u64, else => @compileError("unsupported Highway floating-point width"), }, else => @compileError("type has no Highway unsigned relation"), };}Source: lib/simd/src/root.zig:182
zig
pub const MakeUnsigned = tag.MakeUnsigned;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |