File tree 4 files changed +9
-5
lines changed
4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -83,17 +83,17 @@ cfg_match! {
83
83
84
84
// For character in the chunk, see if its byte value is < 0, which
85
85
// indicates that it's part of a UTF-8 char.
86
- let multibyte_test = unsafe { _mm_cmplt_epi8( chunk, _mm_set1_epi8( 0 ) ) } ;
86
+ let multibyte_test = _mm_cmplt_epi8( chunk, _mm_set1_epi8( 0 ) ) ;
87
87
// Create a bit mask from the comparison results.
88
- let multibyte_mask = unsafe { _mm_movemask_epi8( multibyte_test) } ;
88
+ let multibyte_mask = _mm_movemask_epi8( multibyte_test) ;
89
89
90
90
// If the bit mask is all zero, we only have ASCII chars here:
91
91
if multibyte_mask == 0 {
92
92
assert!( intra_chunk_offset == 0 ) ;
93
93
94
94
// Check for newlines in the chunk
95
- let newlines_test = unsafe { _mm_cmpeq_epi8( chunk, _mm_set1_epi8( b'\n' as i8 ) ) } ;
96
- let mut newlines_mask = unsafe { _mm_movemask_epi8( newlines_test) } ;
95
+ let newlines_test = _mm_cmpeq_epi8( chunk, _mm_set1_epi8( b'\n' as i8 ) ) ;
96
+ let mut newlines_mask = _mm_movemask_epi8( newlines_test) ;
97
97
98
98
let output_offset = RelativeBytePos :: from_usize( chunk_index * CHUNK_SIZE + 1 ) ;
99
99
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ check-cfg = [
32
32
' cfg(bootstrap)' ,
33
33
' cfg(no_fp_fmt_parse)' ,
34
34
' cfg(stdarch_intel_sde)' ,
35
+ # #[cfg(bootstrap)]
36
+ ' cfg(target_feature, values("vector-enhancements-1"))' ,
35
37
# core use #[path] imports to portable-simd `core_simd` crate
36
38
# and to stdarch `core_arch` crate which messes-up with Cargo list
37
39
# of declared features, we therefor expect any feature cfg
Original file line number Diff line number Diff line change 205
205
#![ feature( arm_target_feature) ]
206
206
#![ feature( avx512_target_feature) ]
207
207
#![ feature( hexagon_target_feature) ]
208
+ #![ feature( keylocker_x86) ]
208
209
#![ feature( loongarch_target_feature) ]
209
210
#![ feature( mips_target_feature) ]
210
211
#![ feature( powerpc_target_feature) ]
211
212
#![ feature( riscv_target_feature) ]
212
213
#![ feature( rtm_target_feature) ]
214
+ #![ feature( s390x_target_feature) ]
213
215
#![ feature( sha512_sm_x86) ]
214
216
#![ feature( sse4a_target_feature) ]
215
217
#![ feature( tbm_target_feature) ]
You can’t perform that action at this time.
0 commit comments