analyze_source_file_sse2 in rustc_span::analyze_source_file - Rust
Description: Checks 16 byte chunks of text at a time. If the chunk contains something other than printable ASCII characters and newlines, the function falls back to the generic implementation. Otherwise it uses SSE2 intrinsics to quickly find all newlines.

Skip to main content

## analyze_source_file_sse2

# Function analyze_source_file_sse2

Source

    unsafe fn analyze_source_file_sse2(
        src: &str,
        lines: &mut Vec<RelativeBytePos>,
        multi_byte_chars: &mut Vec<MultiByteChar>,
    )

Expand description

Checks 16 byte chunks of text at a time. If the chunk contains something other than printable ASCII characters and newlines, the function falls back to the generic implementation. Otherwise it uses SSE2 intrinsics to quickly find all newlines.