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.

expFinalize

computes (1 + pr) * 2^(j / 32) * 2^m.

exp_f128.expFinalize
fn expFinalize(pr: f128, j: usize, m: i32) f128

File

lib/compiler_rt/exp_f128.zig:197

Code

fn expFinalize(pr: f128, j: usize, m: i32) f128 {
    const sj_hi = exp2_tab[j].hi;
    const sj_lo = exp2_tab[j].lo;
    const sj = sj_hi + sj_lo;

    const x = sj_hi + (sj_lo + sj * pr);

    return math.ldexp(x, m);
}