Skip to content

Commit ba1d18f

Browse files
Add comments to analzye_filemap().
1 parent 5a6dc8c commit ba1d18f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libsyntax_pos/analyze_filemap.rs

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ cfg_if! {
102102

103103
for chunk_index in 0 .. chunk_count {
104104
let ptr = src_bytes.as_ptr() as *const __m128i;
105+
// We don't know if the pointer is aligned to 16 bytes, so we
106+
// use `loadu`, which supports unaligned loading.
105107
let chunk = _mm_loadu_si128(ptr.offset(chunk_index as isize));
106108

107109
// For character in the chunk, see if its byte value is < 0, which

0 commit comments

Comments
 (0)