Function core::num::dec2flt::parse::parse_8digits

source ·
fn parse_8digits(v: u64) -> u64
🔬This is a nightly-only experimental API. (dec2flt)
Expand description

Parse 8 digits, loaded as bytes in little-endian order.

This uses the trick where every digit is in [0x030, 0x39], and therefore can be parsed in 3 multiplications, much faster than the normal 8.

This is based off the algorithm described in “Fast numeric string to int”, available here: https://johnnylee-sde.github.io/Fast-numeric-string-to-int/.