fn last_byte_digit_dispatcher(s: &str, separator: u8, eol: u8) -> u32 {
    #[cfg(target_arch = "x86_64")]
    {
        if is_x86_feature_detected!("avx2") {
            // repelace the global variable with the pointer to the sse42
            // function
            unsafe {
                LAST_BYTE_DIGIT_SEP = avx::last_byte_without_separator;
                return avx::last_byte_without_separator(s, separator, eol);
            }
        }
        if is_x86_feature_detected!("sse4.2") {
            // repelace the global variable with the pointer to the sse42
            // function
            unsafe {
                LAST_BYTE_DIGIT_SEP = sse42::last_byte_without_separator;
                return sse42::last_byte_without_separator(s, separator, eol);
            }
        }
        if is_x86_feature_detected!("sse4.1") {
            // repelace the global variable with the pointer to the sse41
            // function
            unsafe {
                LAST_BYTE_DIGIT_SEP = sse41::last_byte_without_separator;
                return sse41::last_byte_without_separator(s, separator, eol);
            }
        }
    }

    unsafe {
        LAST_BYTE_DIGIT_SEP = fallback::last_byte_without_separator;
    }
    fallback::last_byte_without_separator(s, separator, eol)
}
/// Implements a single dispatch method to assign the appropriate function to the
/// global variable LAST_BYTE_DIGIT
Implements a single dispatch method to assign the appropriate function to the
global variable LAST_BYTE_DIGIT
Implements a single dispatch method to assign the appropriate function to the global variable LAST_BYTE_DIGIT
fn last_byte_digit_dispatcher(s: &str, separator: u8, eol: u8) -> u32 {
    #[cfg(target_arch = "x86_64")]
    {
        if is_x86_feature_detected!("avx2") {
            // repelace the global variable with the pointer to the sse42
            // function
            unsafe {
                LAST_BYTE_DIGIT_SEP = avx::last_byte_without_separator;
                return avx::last_byte_without_separator(s, separator, eol);
            }
        }
        if is_x86_feature_detected!("sse4.2") {
            // repelace the global variable with the pointer to the sse42
            // function
            unsafe {
                LAST_BYTE_DIGIT_SEP = sse42::last_byte_without_separator;
                return sse42::last_byte_without_separator(s, separator, eol);
            }
        }
        if is_x86_feature_detected!("sse4.1") {
            // repelace the global variable with the pointer to the sse41
            // function
            unsafe {
                LAST_BYTE_DIGIT_SEP = sse41::last_byte_without_separator;
                return sse41::last_byte_without_separator(s, separator, eol);
            }
        }
    }
    unsafe {
        LAST_BYTE_DIGIT_SEP = fallback::last_byte_without_separator;
    }
    fallback::last_byte_without_separator(s, separator, eol)
}
fn last_byte_digit_dispatcher ( s : & str , separator : u8 , eol : u8 ) -> u32 { # [ cfg ( target_arch " " ) ] { if is_x86_feature_detected ! ( " " ) { // repelace the global variable with the pointer to the sse42 // function unsafe { LAST_BYTE_DIGIT_SEP = avx :: last_byte_without_separator ; return avx :: last_byte_without_separator ( s , separator , eol ) ; } } if is_x86_feature_detected ! ( " " ) { // repelace the global variable with the pointer to the sse42 // function unsafe { LAST_BYTE_DIGIT_SEP = sse42 :: last_byte_without_separator ; return sse42 :: last_byte_without_separator ( s , separator , eol ) ; } } if is_x86_feature_detected ! ( " " ) { // repelace the global variable with the pointer to the sse41 // function unsafe { LAST_BYTE_DIGIT_SEP = sse41 :: last_byte_without_separator ; return sse41 :: last_byte_without_separator ( s , separator , eol ) ; } } } unsafe { LAST_BYTE_DIGIT_SEP = fallback :: last_byte_without_separator ; } fallback :: last_byte_without_separator ( s , separator , eol ) }
Implements a single dispatch method to assign the appropriate function to the
global variable LAST_BYTE_DIGIT
Implements a single dispatch method to assign the appropriate function to the global variable LAST_BYTE_DIGIT
s
&str
separator
u8
eol
u8