File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ impl<I: ChunkIt<u32x8>> CollectAndDedup for PaddedIt<I> {
151
151
let len = it. len ( ) ;
152
152
let lane_offsets: [ u32x8 ; 8 ] = from_fn ( |i| u32x8:: splat ( ( i * len) as u32 ) ) ;
153
153
let offsets: [ u32 ; 8 ] = from_fn ( |i| i as u32 ) ;
154
- let mut offsets: u32x8 = unsafe { transmute ( offsets) } ;
154
+ let mut offsets: u32x8 = S :: new ( offsets) ;
155
155
156
156
let mut mask = u32x8:: ZERO ;
157
157
let mut padding_i = 0 ;
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ use core::mem::transmute;
4
4
use packed_seq:: L ;
5
5
6
6
#[ cfg( target_feature = "neon" ) ]
7
- const OFFSET : S = unsafe { std :: mem :: transmute ( [ 0x03_02_01_00 ; 8 ] ) } ;
7
+ const OFFSET : S = S :: new ( [ 0x03_02_01_00 ; 8 ] ) ;
8
8
#[ cfg( target_feature = "neon" ) ]
9
- const MASK : S = unsafe { std :: mem :: transmute ( [ 0x04_04_04_04 ; 8 ] ) } ;
9
+ const MASK : S = S :: new ( [ 0x04_04_04_04 ; 8 ] ) ;
10
10
11
11
/// Dedup adjacent `new` values (starting with the last element of `old`).
12
12
/// If an element is different from the preceding element, append the corresponding element of `vals` to `v[write_idx]`.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use seq_hash::KmerHasher;
16
16
use wide:: u32x8;
17
17
18
18
pub const SKIPPED : u32 = u32:: MAX - 1 ;
19
- pub ( crate ) const SIMD_SKIPPED : u32x8 = unsafe { std :: mem :: transmute ( [ SKIPPED ; 8 ] ) } ;
19
+ pub ( crate ) const SIMD_SKIPPED : u32x8 = u32x8 :: new ( [ SKIPPED ; 8 ] ) ;
20
20
21
21
/// Minimizer position of a single window.
22
22
pub fn one_minimizer < ' s > ( seq : impl Seq < ' s > , hasher : & impl KmerHasher ) -> usize {
You can’t perform that action at this time.
0 commit comments