Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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
pub fn isEightDigits(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
73
74
75
76
77
pub fn isEightDigits(v: u64) bool {
    const a = v +% 0x4646_4646_4646_4646;
    const b = v -% 0x3030_3030_3030_3030;
    return ((a | b) & 0x8080_8080_8080_8080) == 0;
}