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.
Zig › compiler_rt/ › udivmodei4.zig › __udivei4
__udivei4
udivmodei4.__udivei4
pub fn __udivei4 (q_p : [*]u8 , u_p : [*]const u8 , v_p : [*]const u8 , bits : usize ) callconv (.c ) void
File
Code
pub fn __udivei4 (q_p : [*]u8 , u_p : [*]const u8 , v_p : [*]const u8 , bits : usize ) callconv (.c ) void {
@setRuntimeSafety (compiler_rt .test_safety );
const byte_size = std .zig .target .intByteSize (&builtin .target , @intCast (bits ));
const q : []u32 = @ptrCast (@alignCast (q_p [0 ..byte_size ]));
const u : []const u32 = @ptrCast (@alignCast (u_p [0 ..byte_size ]));
const v : []const u32 = @ptrCast (@alignCast (v_p [0 ..byte_size ]));
@call (.always_inline , divmod , .{ q , null , u , v }) catch unreachable ;
}