@@ -165,7 +165,7 @@ pub trait Swizzle<const N: usize> {
165
165
LaneCount < M > : SupportedLaneCount ,
166
166
{
167
167
// SAFETY: all elements of this mask come from another mask
168
- unsafe { Mask :: from_int_unchecked ( Self :: swizzle ( mask. to_int ( ) ) ) }
168
+ unsafe { Mask :: from_int_unchecked ( Self :: swizzle ( mask. to_simd ( ) ) ) }
169
169
}
170
170
171
171
/// Creates a new mask from the elements of `first` and `second`.
@@ -181,7 +181,7 @@ pub trait Swizzle<const N: usize> {
181
181
LaneCount < M > : SupportedLaneCount ,
182
182
{
183
183
// SAFETY: all elements of this mask come from another mask
184
- unsafe { Mask :: from_int_unchecked ( Self :: concat_swizzle ( first. to_int ( ) , second. to_int ( ) ) ) }
184
+ unsafe { Mask :: from_int_unchecked ( Self :: concat_swizzle ( first. to_simd ( ) , second. to_simd ( ) ) ) }
185
185
}
186
186
}
187
187
@@ -524,7 +524,7 @@ where
524
524
#[ must_use = "method returns a new vector and does not mutate the original inputs" ]
525
525
pub fn reverse ( self ) -> Self {
526
526
// Safety: swizzles are safe for masks
527
- unsafe { Self :: from_int_unchecked ( self . to_int ( ) . reverse ( ) ) }
527
+ unsafe { Self :: from_int_unchecked ( self . to_simd ( ) . reverse ( ) ) }
528
528
}
529
529
530
530
/// Rotates the mask such that the first `OFFSET` elements of the slice move to the end
@@ -534,7 +534,7 @@ where
534
534
#[ must_use = "method returns a new vector and does not mutate the original inputs" ]
535
535
pub fn rotate_elements_left < const OFFSET : usize > ( self ) -> Self {
536
536
// Safety: swizzles are safe for masks
537
- unsafe { Self :: from_int_unchecked ( self . to_int ( ) . rotate_elements_left :: < OFFSET > ( ) ) }
537
+ unsafe { Self :: from_int_unchecked ( self . to_simd ( ) . rotate_elements_left :: < OFFSET > ( ) ) }
538
538
}
539
539
540
540
/// Rotates the mask such that the first `self.len() - OFFSET` elements of the mask move to
@@ -544,7 +544,7 @@ where
544
544
#[ must_use = "method returns a new vector and does not mutate the original inputs" ]
545
545
pub fn rotate_elements_right < const OFFSET : usize > ( self ) -> Self {
546
546
// Safety: swizzles are safe for masks
547
- unsafe { Self :: from_int_unchecked ( self . to_int ( ) . rotate_elements_right :: < OFFSET > ( ) ) }
547
+ unsafe { Self :: from_int_unchecked ( self . to_simd ( ) . rotate_elements_right :: < OFFSET > ( ) ) }
548
548
}
549
549
550
550
/// Shifts the mask elements to the left by `OFFSET`, filling in with
@@ -554,7 +554,7 @@ where
554
554
pub fn shift_elements_left < const OFFSET : usize > ( self , padding : bool ) -> Self {
555
555
// Safety: swizzles are safe for masks
556
556
unsafe {
557
- Self :: from_int_unchecked ( self . to_int ( ) . shift_elements_left :: < OFFSET > ( if padding {
557
+ Self :: from_int_unchecked ( self . to_simd ( ) . shift_elements_left :: < OFFSET > ( if padding {
558
558
T :: TRUE
559
559
} else {
560
560
T :: FALSE
@@ -569,7 +569,7 @@ where
569
569
pub fn shift_elements_right < const OFFSET : usize > ( self , padding : bool ) -> Self {
570
570
// Safety: swizzles are safe for masks
571
571
unsafe {
572
- Self :: from_int_unchecked ( self . to_int ( ) . shift_elements_right :: < OFFSET > ( if padding {
572
+ Self :: from_int_unchecked ( self . to_simd ( ) . shift_elements_right :: < OFFSET > ( if padding {
573
573
T :: TRUE
574
574
} else {
575
575
T :: FALSE
@@ -598,7 +598,7 @@ where
598
598
#[ inline]
599
599
#[ must_use = "method returns a new vector and does not mutate the original inputs" ]
600
600
pub fn interleave ( self , other : Self ) -> ( Self , Self ) {
601
- let ( lo, hi) = self . to_int ( ) . interleave ( other. to_int ( ) ) ;
601
+ let ( lo, hi) = self . to_simd ( ) . interleave ( other. to_simd ( ) ) ;
602
602
// Safety: swizzles are safe for masks
603
603
unsafe { ( Self :: from_int_unchecked ( lo) , Self :: from_int_unchecked ( hi) ) }
604
604
}
@@ -627,7 +627,7 @@ where
627
627
#[ inline]
628
628
#[ must_use = "method returns a new vector and does not mutate the original inputs" ]
629
629
pub fn deinterleave ( self , other : Self ) -> ( Self , Self ) {
630
- let ( even, odd) = self . to_int ( ) . deinterleave ( other. to_int ( ) ) ;
630
+ let ( even, odd) = self . to_simd ( ) . deinterleave ( other. to_simd ( ) ) ;
631
631
// Safety: swizzles are safe for masks
632
632
unsafe {
633
633
(
@@ -659,7 +659,7 @@ where
659
659
{
660
660
// Safety: swizzles are safe for masks
661
661
unsafe {
662
- Mask :: < T , M > :: from_int_unchecked ( self . to_int ( ) . resize :: < M > ( if value {
662
+ Mask :: < T , M > :: from_int_unchecked ( self . to_simd ( ) . resize :: < M > ( if value {
663
663
T :: TRUE
664
664
} else {
665
665
T :: FALSE
@@ -684,6 +684,6 @@ where
684
684
LaneCount < LEN > : SupportedLaneCount ,
685
685
{
686
686
// Safety: swizzles are safe for masks
687
- unsafe { Mask :: < T , LEN > :: from_int_unchecked ( self . to_int ( ) . extract :: < START , LEN > ( ) ) }
687
+ unsafe { Mask :: < T , LEN > :: from_int_unchecked ( self . to_simd ( ) . extract :: < START , LEN > ( ) ) }
688
688
}
689
689
}
0 commit comments