@@ -165,7 +165,7 @@ pub trait Swizzle<const N: usize> {
165165 LaneCount < M > : SupportedLaneCount ,
166166 {
167167 // 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 ( ) ) ) }
169169 }
170170
171171 /// Creates a new mask from the elements of `first` and `second`.
@@ -181,7 +181,7 @@ pub trait Swizzle<const N: usize> {
181181 LaneCount < M > : SupportedLaneCount ,
182182 {
183183 // 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 ( ) ) ) }
185185 }
186186}
187187
@@ -524,7 +524,7 @@ where
524524 #[ must_use = "method returns a new vector and does not mutate the original inputs" ]
525525 pub fn reverse ( self ) -> Self {
526526 // 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 ( ) ) }
528528 }
529529
530530 /// Rotates the mask such that the first `OFFSET` elements of the slice move to the end
@@ -534,7 +534,7 @@ where
534534 #[ must_use = "method returns a new vector and does not mutate the original inputs" ]
535535 pub fn rotate_elements_left < const OFFSET : usize > ( self ) -> Self {
536536 // 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 > ( ) ) }
538538 }
539539
540540 /// Rotates the mask such that the first `self.len() - OFFSET` elements of the mask move to
@@ -544,7 +544,7 @@ where
544544 #[ must_use = "method returns a new vector and does not mutate the original inputs" ]
545545 pub fn rotate_elements_right < const OFFSET : usize > ( self ) -> Self {
546546 // 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 > ( ) ) }
548548 }
549549
550550 /// Shifts the mask elements to the left by `OFFSET`, filling in with
@@ -554,7 +554,7 @@ where
554554 pub fn shift_elements_left < const OFFSET : usize > ( self , padding : bool ) -> Self {
555555 // Safety: swizzles are safe for masks
556556 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 {
558558 T :: TRUE
559559 } else {
560560 T :: FALSE
@@ -569,7 +569,7 @@ where
569569 pub fn shift_elements_right < const OFFSET : usize > ( self , padding : bool ) -> Self {
570570 // Safety: swizzles are safe for masks
571571 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 {
573573 T :: TRUE
574574 } else {
575575 T :: FALSE
@@ -598,7 +598,7 @@ where
598598 #[ inline]
599599 #[ must_use = "method returns a new vector and does not mutate the original inputs" ]
600600 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 ( ) ) ;
602602 // Safety: swizzles are safe for masks
603603 unsafe { ( Self :: from_int_unchecked ( lo) , Self :: from_int_unchecked ( hi) ) }
604604 }
@@ -627,7 +627,7 @@ where
627627 #[ inline]
628628 #[ must_use = "method returns a new vector and does not mutate the original inputs" ]
629629 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 ( ) ) ;
631631 // Safety: swizzles are safe for masks
632632 unsafe {
633633 (
@@ -659,7 +659,7 @@ where
659659 {
660660 // Safety: swizzles are safe for masks
661661 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 {
663663 T :: TRUE
664664 } else {
665665 T :: FALSE
@@ -684,6 +684,6 @@ where
684684 LaneCount < LEN > : SupportedLaneCount ,
685685 {
686686 // 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 > ( ) ) }
688688 }
689689}
0 commit comments