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.

__divmoddi4

int.__divmoddi4
pub fn __divmoddi4(a: i64, b: i64, rem: *i64) callconv(.c) i64

File

Code

pub fn __divmoddi4(a: i64, b: i64, rem: *i64) callconv(.c) i64 {
    const d = __divdi3(a, b);
    rem.* = a -% (d * b);
    return d;
}