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.

test__ctz_limb64

limb64.test__ctz_limb64
fn test__ctz_limb64(comptime T: type, a: T, expected: u16) !void

File

lib/compiler_rt/limb64.zig:762

Code

fn test__ctz_limb64(comptime T: type, a: T, expected: u16) !void {
    const int_info = @typeInfo(T).int;

    var a_limbs = asLimbs(a);
    const out = __ctz_limb64(&a_limbs, int_info.bits);

    try testing.expectEqual(expected, out);
}