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.

divhf3.zig

File

Code

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

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

pub fn __divhf3(a: f16, b: f16) callconv(.c) f16 {
    // TODO: more efficient implementation
    return @floatCast(divsf3.__divsf3(a, b));
}