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.

sub

subdf3.sub
inline fn sub(a: f64, b: f64) f64

File

lib/compiler_rt/subdf3.zig:21

Code

inline fn sub(a: f64, b: f64) f64 {
    const neg_b = @as(f64, @bitCast(@as(u64, @bitCast(b)) ^ (@as(u64, 1) << 63)));
    return addf3(f64, a, neg_b);
}