Skip to documentation
SLOP

tiny.simd.MakeNarrow

Reference tiny.simd MakeNarrow

Defined in tag.

Called byCallsNo direct callstagRepartitionToNarrowtest sourcelib.simd.src.tagtest: Highway lane type relations cov...tagMakeNarrow
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433