tiny.simd.MakeWide
Defined in tag.
Source
Source: lib/simd/src/tag.zig:277
zig
pub fn MakeWide(comptime T: type) type { if (isBFloat16(T)) return f32; return switch (@typeInfo(T)) { .int => |info| switch (info.bits) { 8 => @Int(info.signedness, 16), 16 => @Int(info.signedness, 32), 32 => @Int(info.signedness, 64), 64 => if (info.signedness == .unsigned) u128 else @compileError("type has no Highway wide relation"), else => @compileError("type has no Highway wide relation"), }, .float => |info| switch (info.bits) { 16 => f32, 32 => f64, else => @compileError("type has no Highway wide relation"), }, else => @compileError("type has no Highway wide relation"), };}Source: lib/simd/src/root.zig:185
zig
pub const MakeWide = tag.MakeWide;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |