@@ -87,17 +87,17 @@ cfg_match! {
8787
8888 // For character in the chunk, see if its byte value is < 0, which
8989 // indicates that it's part of a UTF-8 char.
90- let multibyte_test = unsafe { _mm_cmplt_epi8( chunk, _mm_set1_epi8( 0 ) ) } ;
90+ let multibyte_test = _mm_cmplt_epi8( chunk, _mm_set1_epi8( 0 ) ) ;
9191 // Create a bit mask from the comparison results.
92- let multibyte_mask = unsafe { _mm_movemask_epi8( multibyte_test) } ;
92+ let multibyte_mask = _mm_movemask_epi8( multibyte_test) ;
9393
9494 // If the bit mask is all zero, we only have ASCII chars here:
9595 if multibyte_mask == 0 {
9696 assert!( intra_chunk_offset == 0 ) ;
9797
9898 // Check for newlines in the chunk
99- let newlines_test = unsafe { _mm_cmpeq_epi8( chunk, _mm_set1_epi8( b'\n' as i8 ) ) } ;
100- let mut newlines_mask = unsafe { _mm_movemask_epi8( newlines_test) } ;
99+ let newlines_test = _mm_cmpeq_epi8( chunk, _mm_set1_epi8( b'\n' as i8 ) ) ;
100+ let mut newlines_mask = _mm_movemask_epi8( newlines_test) ;
101101
102102 let output_offset = RelativeBytePos :: from_usize( chunk_index * CHUNK_SIZE + 1 ) ;
103103
@@ -212,17 +212,17 @@ cfg_match! {
212212
213213 // For character in the chunk, see if its byte value is < 0, which
214214 // indicates that it's part of a UTF-8 char.
215- let multibyte_test = unsafe { _mm_cmplt_epi8( chunk, _mm_set1_epi8( 0 ) ) } ;
215+ let multibyte_test = _mm_cmplt_epi8( chunk, _mm_set1_epi8( 0 ) ) ;
216216 // Create a bit mask from the comparison results.
217- let multibyte_mask = unsafe { _mm_movemask_epi8( multibyte_test) } ;
217+ let multibyte_mask = _mm_movemask_epi8( multibyte_test) ;
218218
219219 // If the bit mask is all zero, we only have ASCII chars here:
220220 if multibyte_mask == 0 {
221221 assert!( intra_chunk_offset == 0 ) ;
222222
223223 // Check for newlines in the chunk
224- let newlines_test = unsafe { _mm_cmpeq_epi8( chunk, _mm_set1_epi8( b'\n' as i8 ) ) } ;
225- let mut newlines_mask = unsafe { _mm_movemask_epi8( newlines_test) } ;
224+ let newlines_test = _mm_cmpeq_epi8( chunk, _mm_set1_epi8( b'\n' as i8 ) ) ;
225+ let mut newlines_mask = _mm_movemask_epi8( newlines_test) ;
226226
227227 let output_offset = RelativeBytePos :: from_usize( chunk_index * CHUNK_SIZE + 1 ) ;
228228
0 commit comments