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.

exp2l

exp2.exp2l
pub fn exp2l(x: c_longdouble) callconv(.c) c_longdouble

File

lib/compiler_rt/exp2.zig:166

Code

pub fn exp2l(x: c_longdouble) callconv(.c) c_longdouble {
    switch (@typeInfo(c_longdouble).float.bits) {
        64 => return exp2(x),
        80 => return __exp2x(x),
        128 => return exp2q(x),
        else => @compileError("unreachable"),
    }
}