File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
crates/core_simd/src/masks Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -105,18 +105,14 @@ where
105105 #[ must_use = "method returns a new vector and does not mutate the original value" ]
106106 pub fn to_int ( self ) -> Simd < T , LANES > {
107107 unsafe {
108- crate :: intrinsics:: simd_select_bitmask (
109- self . 0 ,
110- Simd :: splat ( T :: TRUE ) ,
111- Simd :: splat ( T :: FALSE ) ,
112- )
108+ intrinsics:: simd_select_bitmask ( self . 0 , Simd :: splat ( T :: TRUE ) , Simd :: splat ( T :: FALSE ) )
113109 }
114110 }
115111
116112 #[ inline]
117113 #[ must_use = "method returns a new mask and does not mutate the original value" ]
118114 pub unsafe fn from_int_unchecked ( value : Simd < T , LANES > ) -> Self {
119- unsafe { Self ( crate :: intrinsics:: simd_bitmask ( value) , PhantomData ) }
115+ unsafe { Self ( intrinsics:: simd_bitmask ( value) , PhantomData ) }
120116 }
121117
122118 #[ cfg( feature = "generic_const_exprs" ) ]
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ where
115115 pub fn to_bitmask ( self ) -> [ u8 ; LaneCount :: < LANES > :: BITMASK_LEN ] {
116116 unsafe {
117117 let mut bitmask: [ u8 ; LaneCount :: < LANES > :: BITMASK_LEN ] =
118- crate :: intrinsics:: simd_bitmask ( self . 0 ) ;
118+ intrinsics:: simd_bitmask ( self . 0 ) ;
119119
120120 // There is a bug where LLVM appears to implement this operation with the wrong
121121 // bit order.
@@ -144,7 +144,7 @@ where
144144 }
145145 }
146146
147- Self :: from_int_unchecked ( crate :: intrinsics:: simd_select_bitmask (
147+ Self :: from_int_unchecked ( intrinsics:: simd_select_bitmask (
148148 bitmask,
149149 Self :: splat ( true ) . to_int ( ) ,
150150 Self :: splat ( false ) . to_int ( ) ,
You can’t perform that action at this time.
0 commit comments