Skip to documentation
SLOP

tiny.simd.MakeSigned

Reference tiny.simd MakeSigned

Defined in tag.

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

Source

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

zig
pub fn MakeSigned(comptime T: type) type {    if (isBFloat16(T)) return i16;    return switch (@typeInfo(T)) {        .int => |info| switch (info.bits) {            8, 16, 32, 64 => @Int(.signed, info.bits),            else => @compileError("type has no Highway signed relation"),        },        .float => |info| switch (info.bits) {            16 => i16,            32 => i32,            64 => i64,            else => @compileError("unsupported Highway floating-point width"),        },        else => @compileError("type has no Highway signed relation"),    };}

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

zig
pub const MakeSigned = tag.MakeSigned;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433