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