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.

Config

Configuration for computing a^x, a in {e, 2, 10}, or e^x - 1.

exp_f128.Config
const Config = struct

File

lib/compiler_rt/exp_f128.zig:180

Code

const Config = struct {
    /// size / log(a)
    inv_log_size: f128,

    // High bits of log(a) / size, with the 12 last bits set to 0
    log_size_hi: f128,
    // Low bits of log(a) / size, negated
    neg_log_size_lo: f128,

    /// Approximates a^(r_hi + r_lo) - 1.
    poly: fn (f128, f128) f128,

    /// Compute the final value, a^x or e^x - 1.
    finalize: fn (pr: f128, j: usize, m: i32) f128,
}