Skip to documentation
SLOP

tiny.simd.MakeWide

Reference tiny.simd MakeWide

Defined in tag.

Called byCallstest sourcelib.simd.src.bfloattest: Highway bfloat16 descriptors pr...tagRepartitionToWidetest sourcelib.simd.src.tagtest: Highway lane type relations cov...private sourcelib.simd.src.tagisBFloat16tagMakeWide
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433