Skip to documentation
SLOP

tiny.simd.writeVector

Reference tiny.simd writeVector

Defined in print.

Called byCallstest sourcelib.simd.src.printtest: vector diagnostics preserve arr...BFloat16fromBitsprivate sourcelib.simd.src.printvalidateTypeprivate sourcelib.simd.src.printwriteFooterprivate sourcelib.simd.src.printwriteHeaderprintwriteValueprintwriteVector
Static calls · unresolved targets: 0 · external targets: 1.

Source

Source: lib/simd/src/print.zig:218

zig
pub fn writeVector(    writer: *std.Io.Writer,    comptime D: type,    caption: []const u8,    value: D.Vector,    options: Window,) std.Io.Writer.Error!void {    const is_bfloat = @hasDecl(D, "is_bfloat16") and D.is_bfloat16;    const T = if (is_bfloat) bfloat.BFloat16 else D.Lane;    validateType(T);    const bounds = try writeHeader(writer, T, caption, D.lane_count, options);    const lanes: [D.lane_count]D.Lane = @bitCast(value);    for (bounds.begin..bounds.end) |index| {        if (is_bfloat) {            try writeValue(writer, bfloat.BFloat16.fromBits(lanes[index]));        } else {            try writeValue(writer, lanes[index]);        }        try writer.writeByte(',');    }    try writeFooter(writer, bounds);}

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

zig
pub const writeVector = print.writeVector;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433