File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
portable/src/implementation Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,6 @@ const HAS_FAST_REDUCE_MAX: bool = false;
23
23
24
24
const HAS_FAST_MASKED_LOAD : bool = false ; // FIXME avx512, avx2 (32-bit chunks only?)
25
25
26
- #[ repr( C , align( 32 ) ) ]
27
- #[ allow( dead_code) ] // only used if a 128-bit SIMD implementation is used
28
- pub ( crate ) struct TempSimdChunk ( pub ( crate ) [ u8 ; SIMD_CHUNK_SIZE ] ) ;
29
-
30
- #[ allow( dead_code) ] // only used if there is a SIMD implementation
31
- impl TempSimdChunk {
32
- #[ expect( clippy:: inline_always) ]
33
- #[ inline( always) ] // FIXME needs to be forced because otherwise it is not inlined on armv7 neo
34
- pub ( crate ) const fn new ( ) -> Self {
35
- Self ( [ 0 ; SIMD_CHUNK_SIZE ] )
36
- }
37
- }
38
-
39
26
#[ repr( C ) ]
40
27
struct SimdInput < const N : usize , const O : usize >
41
28
where
@@ -944,9 +931,7 @@ impl basic::imp::ChunkedUtf8Validator for ChunkedUtf8ValidatorImp {
944
931
let rem = len - chunks_lim;
945
932
if rem > 0 {
946
933
remaining_input = & remaining_input[ chunks_lim..] ;
947
- let mut tmpbuf = TempSimdChunk :: new ( ) ;
948
- tmpbuf. 0 [ ..remaining_input. len ( ) ] . copy_from_slice ( remaining_input) ;
949
- let simd_input = SimdInput :: new ( & tmpbuf. 0 ) ;
934
+ let simd_input = SimdInput :: new_partial ( remaining_input) ;
950
935
self . algorithm . check_utf8 ( & simd_input) ;
951
936
}
952
937
}
You can’t perform that action at this time.
0 commit comments