File tree 2 files changed +4
-8
lines changed
crates/core_simd/src/masks
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -105,18 +105,14 @@ where
105
105
#[ must_use = "method returns a new vector and does not mutate the original value" ]
106
106
pub fn to_int ( self ) -> Simd < T , LANES > {
107
107
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 ) )
113
109
}
114
110
}
115
111
116
112
#[ inline]
117
113
#[ must_use = "method returns a new mask and does not mutate the original value" ]
118
114
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 ) }
120
116
}
121
117
122
118
#[ cfg( feature = "generic_const_exprs" ) ]
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ where
115
115
pub fn to_bitmask ( self ) -> [ u8 ; LaneCount :: < LANES > :: BITMASK_LEN ] {
116
116
unsafe {
117
117
let mut bitmask: [ u8 ; LaneCount :: < LANES > :: BITMASK_LEN ] =
118
- crate :: intrinsics:: simd_bitmask ( self . 0 ) ;
118
+ intrinsics:: simd_bitmask ( self . 0 ) ;
119
119
120
120
// There is a bug where LLVM appears to implement this operation with the wrong
121
121
// bit order.
@@ -144,7 +144,7 @@ where
144
144
}
145
145
}
146
146
147
- Self :: from_int_unchecked ( crate :: intrinsics:: simd_select_bitmask (
147
+ Self :: from_int_unchecked ( intrinsics:: simd_select_bitmask (
148
148
bitmask,
149
149
Self :: splat ( true ) . to_int ( ) ,
150
150
Self :: splat ( false ) . to_int ( ) ,
You can’t perform that action at this time.
0 commit comments