Skip to documentation
SLOP

tiny.simd.MakeFloat

Reference tiny.simd MakeFloat

Defined in tag.

Called byCallstagRebindToFloattest sourcelib.simd.src.tagtest: Highway lane type relations cov...private sourcelib.simd.src.tagisBFloat16tagMakeFloat
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/simd/src/tag.zig:258

zig
pub fn MakeFloat(comptime T: type) type {    if (isBFloat16(T)) @compileError("type has no Highway floating-point relation");    return switch (@typeInfo(T)) {        .int => |info| switch (info.bits) {            16 => f16,            32 => f32,            64 => f64,            else => @compileError("type has no Highway floating-point relation"),        },        .float => |info| switch (info.bits) {            16 => f16,            32 => f32,            64 => f64,            else => @compileError("type has no Highway floating-point relation"),        },        else => @compileError("type has no Highway floating-point relation"),    };}

Source: lib/simd/src/root.zig:184

zig
pub const MakeFloat = tag.MakeFloat;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433