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.

exp_f128

Implementation of f128 exp and exp2 based on:

and

Both by Ping Tak Peter Tang.

Adapted by Christophe Delage to work with 128 bit floats and with base 2 and 10.

Accuracy tested on 100 million uniformly distributed random values:

exp: when result is normal: <= 0.5 ulp: 99.83%, worst case: 0.512 when result is subnormal: <= 0.5 ulp: 99.80%, worst case: 0.628 exp2: when result is normal: <= 0.5 ulp: 99.82%, worst case: 0.514 when result is subnormal: <= 0.5 ulp: 99.56%, worst case: 0.752

exp_f128.exp_f128
const exp_f128 = @This()

File

lib/compiler_rt/exp_f128.zig:24

Code

const exp_f128 = @This()