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

subsf3.sub
inline fn sub(a: f32, b: f32) f32

File

lib/compiler_rt/subsf3.zig:21

Code

inline fn sub(a: f32, b: f32) f32 {
    const neg_b = @as(f32, @bitCast(@as(u32, @bitCast(b)) ^ (@as(u32, 1) << 31)));
    return addf3(f32, a, neg_b);
}