File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,7 @@ unsafe fn analyze_source_file_sse2(
340
340
341
341
#[ target_feature( enable = "neon" ) ]
342
342
#[ cfg( any( target_arch = "aarch64" ) ) ]
343
+ #[ inline]
343
344
// See https://community.arm.com/arm-community-blogs/b/infrastructure-solutions-blog/posts/porting-x86-vector-bitmask-optimizations-to-arm-neon
344
345
//
345
346
// The mask is a 64-bit integer, where each 4-bit corresponds to a u8 in the
@@ -393,7 +394,7 @@ unsafe fn analyze_source_file_neon(
393
394
let newlines_test = vceqq_s8 ( chunk, newline) ;
394
395
let mut newlines_mask = move_mask ( newlines_test) ;
395
396
396
- // If the bit mask is all zero, there are no newlines in this chunk.
397
+ // If the bit mask is not all zero, there are newlines in this chunk.
397
398
if newlines_mask != 0 {
398
399
let output_offset = TextSize :: from ( ( chunk_index * CHUNK_SIZE + 1 ) as u32 ) ;
399
400
You can’t perform that action at this time.
0 commit comments