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.

PowerOfTwoSignificandZ

Returns a power-of-two integer type that is large enough to contain the significand of T, including an explicit integer bit

mulf3.PowerOfTwoSignificandZ
fn PowerOfTwoSignificandZ(comptime T: type) type

File

lib/compiler_rt/mulf3.zig:196

Code

fn PowerOfTwoSignificandZ(comptime T: type) type {
    const bits = math.ceilPowerOfTwoAssert(u16, math.floatFractionalBits(T) + 1);
    return @Int(.unsigned, bits);
}