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.

__eqhf2

"These functions return zero if neither argument is NaN, and a and b are equal." Note that due to some kind of historical accident, __eqhf2 and __nehf2 are defined to have the same return value.

comparef.__eqhf2
fn __eqhf2(a: f16, b: f16) callconv(.c) i32

File

lib/compiler_rt/comparef.zig:115

Code

fn __eqhf2(a: f16, b: f16) callconv(.c) i32 {
    return __cmphf2(a, b);
}