diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2018-06-01 12:54:15 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2018-06-27 14:00:34 +0200 |
| commit | ba1d18fe299cc6e44be7b5d10be004d7e3f3e6ea (patch) | |
| tree | 84dd66d49686b76402b46b6191ca8bdc5382afc4 | |
| parent | 5a6dc8c4f5fdf06420b16f848582f6e17b9ff83e (diff) | |
| download | rust-ba1d18fe299cc6e44be7b5d10be004d7e3f3e6ea.tar.gz rust-ba1d18fe299cc6e44be7b5d10be004d7e3f3e6ea.zip | |
Add comments to analzye_filemap().
| -rw-r--r-- | src/libsyntax_pos/analyze_filemap.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax_pos/analyze_filemap.rs b/src/libsyntax_pos/analyze_filemap.rs index 7828c55ce78..99fc3f19009 100644 --- a/src/libsyntax_pos/analyze_filemap.rs +++ b/src/libsyntax_pos/analyze_filemap.rs @@ -102,6 +102,8 @@ cfg_if! { for chunk_index in 0 .. chunk_count { let ptr = src_bytes.as_ptr() as *const __m128i; + // We don't know if the pointer is aligned to 16 bytes, so we + // use `loadu`, which supports unaligned loading. let chunk = _mm_loadu_si128(ptr.offset(chunk_index as isize)); // For character in the chunk, see if its byte value is < 0, which |
