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.

__udivmodsi4

int.__udivmodsi4
pub fn __udivmodsi4(a: u32, b: u32, rem: *u32) callconv(.c) u32

File

lib/compiler_rt/int.zig:244

Code

pub fn __udivmodsi4(a: u32, b: u32, rem: *u32) callconv(.c) u32 {
    const d = __udivsi3(a, b);
    rem.* = @bitCast(@as(i32, @bitCast(a)) -% (@as(i32, @bitCast(d)) * @as(i32, @bitCast(b))));
    return d;
}