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/ › divmodei4.zig › __divei5
__divei5
divmodei4.__divei5
pub fn __divei5 (q_p : [*]u8 , u_p : [*]const u8 , v_p : [*]const u8 , t_p : [*]u8 , bits : usize ) callconv (.c ) void
File
Code
pub fn __divei5 (q_p : [*]u8 , u_p : [*]const u8 , v_p : [*]const u8 , t_p : [*]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 ]));
const tu : []u32 = @ptrCast (@alignCast (t_p [0 ..byte_size ]));
const tv : []u32 = @ptrCast (@alignCast (t_p [byte_size ..][0 ..byte_size ]));
@call (.always_inline , divmod , .{ q , null , u , v , tu , tv }) catch unreachable ;
}