Skip to main content

u64_len

Function u64_len 

Source
pub const fn u64_len(n: u64) -> usize
Expand description

How many digits n has.

ilog10 and not a loop of divides, because this runs in front of every integer reply to size the buffer and a divide by ten is twenty cycles the hardware’s leading zero count answers in one.