fn parse_integer_checked_dispatcher(s: &str) -> Option<u32> {
    #[cfg(target_arch = "x86_64")]
    {
        if is_x86_feature_detected!("avx2") {
            unsafe {
                PARSE_INTEGER = parse_integer_checked_avx2;
                return parse_integer_checked_avx2(s);
            }
        }
        if is_x86_feature_detected!("sse4.1") {
            unsafe {
                PARSE_INTEGER = parse_integer_checked_sse41;
                return parse_integer_checked_sse41(s);
            }
        }
    }
    // fallback implementation
    unsafe {
        PARSE_INTEGER = fallback::parse_integer;
    }
    fallback::parse_integer(s)
}
/// Assigns the correct implementation to `PARSE_INTEGER` according to the
/// underlying cpu
Assigns the correct implementation to `PARSE_INTEGER` according to the
underlying cpu
Assigns the correct implementation to ` PARSE_INTEGER ` according to the underlying cpu
fn parse_integer_checked_dispatcher(s: &str) -> Option<u32> {
    #[cfg(target_arch = "x86_64")]
    {
        if is_x86_feature_detected!("avx2") {
            unsafe {
                PARSE_INTEGER = parse_integer_checked_avx2;
                return parse_integer_checked_avx2(s);
            }
        }
        if is_x86_feature_detected!("sse4.1") {
            unsafe {
                PARSE_INTEGER = parse_integer_checked_sse41;
                return parse_integer_checked_sse41(s);
            }
        }
    }
    // fallback implementation
    unsafe {
        PARSE_INTEGER = fallback::parse_integer;
    }
    fallback::parse_integer(s)
}
fn parse_integer_checked_dispatcher ( s : & str ) -> Option < u32 > { # [ cfg ( target_arch " " ) ] { if is_x86_feature_detected ! ( " " ) { unsafe { PARSE_INTEGER = parse_integer_checked_avx2 ; return parse_integer_checked_avx2 ( s ) ; } } if is_x86_feature_detected ! ( " " ) { unsafe { PARSE_INTEGER = parse_integer_checked_sse41 ; return parse_integer_checked_sse41 ( s ) ; } } } // fallback implementation unsafe { PARSE_INTEGER = fallback :: parse_integer ; } fallback :: parse_integer ( s ) }
Assigns the correct implementation to `PARSE_INTEGER` according to the
underlying cpu
Assigns the correct implementation to ` PARSE_INTEGER ` according to the underlying cpu
s
&str