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 standard library. Public Function
isEightDigits
Public Function
std.fmt.parse_float.common.isEightDigits
pubfnisEightDigits(v: u64) bool
Determine if 8 bytes are all decimal digits. This does not care about the order in which the bytes were loaded.
Params
v: u64
File
fmt/parse_float/common.zig:73
7374757677
pubfnisEightDigits(v: u64) bool {
consta = v +% 0x4646_4646_4646_4646;
constb = v -% 0x3030_3030_3030_3030;
return ((a | b) & 0x8080_8080_8080_8080) == 0;
}
Determine if 8 bytes are all decimal digits. This does not care about the order in which the bytes were loaded.