Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

truncxfhf2.zig

File

lib/compiler_rt/truncxfhf2.zig

Code

const compiler_rt = @import("../compiler_rt.zig");
const symbol = @import("../compiler_rt.zig").symbol;
const trunc_f80 = @import("./truncf.zig").trunc_f80;

comptime {
    symbol(&__truncxfhf2, "__truncxfhf2");
}

fn __truncxfhf2(a: f80) callconv(.c) compiler_rt.F16T(f80) {
    return @bitCast(trunc_f80(f16, a));
}