@@ -410,8 +410,8 @@ mod sealed {
410410
411411 #[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
412412 pub trait VectorInsert {
413- type S ;
414- unsafe fn vec_insert < const IDX : u32 > ( self , s : Self :: S ) -> Self ;
413+ type Scalar ;
414+ unsafe fn vec_insert < const IDX : u32 > ( self , s : Self :: Scalar ) -> Self ;
415415 }
416416
417417 const fn idx_in_vec < T , const IDX : u32 > ( ) -> u32 {
@@ -422,11 +422,11 @@ mod sealed {
422422 ( $ty: ident) => {
423423 #[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
424424 impl VectorInsert for t_t_l!( $ty) {
425- type S = $ty;
425+ type Scalar = $ty;
426426 #[ inline]
427427 #[ target_feature( enable = "altivec" ) ]
428- unsafe fn vec_insert<const IDX : u32 >( self , s: Self :: S ) -> Self {
429- simd_insert( self , const { idx_in_vec:: <Self :: S , IDX >( ) } , s)
428+ unsafe fn vec_insert<const IDX : u32 >( self , s: Self :: Scalar ) -> Self {
429+ simd_insert( self , const { idx_in_vec:: <Self :: Scalar , IDX >( ) } , s)
430430 }
431431 }
432432 } ;
@@ -442,19 +442,19 @@ mod sealed {
442442
443443 #[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
444444 pub trait VectorExtract {
445- type S ;
446- unsafe fn vec_extract < const IDX : u32 > ( self ) -> Self :: S ;
445+ type Scalar ;
446+ unsafe fn vec_extract < const IDX : u32 > ( self ) -> Self :: Scalar ;
447447 }
448448
449449 macro_rules! impl_vec_extract {
450450 ( $ty: ident) => {
451451 #[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
452452 impl VectorExtract for t_t_l!( $ty) {
453- type S = $ty;
453+ type Scalar = $ty;
454454 #[ inline]
455455 #[ target_feature( enable = "altivec" ) ]
456- unsafe fn vec_extract<const IDX : u32 >( self ) -> Self :: S {
457- simd_extract( self , const { idx_in_vec:: <Self :: S , IDX >( ) } )
456+ unsafe fn vec_extract<const IDX : u32 >( self ) -> Self :: Scalar {
457+ simd_extract( self , const { idx_in_vec:: <Self :: Scalar , IDX >( ) } )
458458 }
459459 }
460460 } ;
@@ -3233,18 +3233,18 @@ mod sealed {
32333233
32343234 #[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
32353235 pub trait VectorRl {
3236- type B ;
3237- unsafe fn vec_rl ( self , b : Self :: B ) -> Self ;
3236+ type Shift ;
3237+ unsafe fn vec_rl ( self , b : Self :: Shift ) -> Self ;
32383238 }
32393239
32403240 macro_rules! impl_vec_rl {
32413241 ( $fun: ident ( $a: ident) ) => {
32423242 #[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
32433243 impl VectorRl for $a {
3244- type B = t_u!( $a) ;
3244+ type Shift = t_u!( $a) ;
32453245 #[ inline]
32463246 #[ target_feature( enable = "altivec" ) ]
3247- unsafe fn vec_rl( self , b: Self :: B ) -> Self {
3247+ unsafe fn vec_rl( self , b: Self :: Shift ) -> Self {
32483248 transmute( $fun( transmute( self ) , b) )
32493249 }
32503250 }
@@ -3292,7 +3292,7 @@ mod sealed {
32923292#[ inline]
32933293#[ target_feature( enable = "altivec" ) ]
32943294#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
3295- pub unsafe fn vec_insert < T , const IDX : u32 > ( a : T , b : <T as sealed:: VectorInsert >:: S ) -> T
3295+ pub unsafe fn vec_insert < T , const IDX : u32 > ( a : T , b : <T as sealed:: VectorInsert >:: Scalar ) -> T
32963296where
32973297 T : sealed:: VectorInsert ,
32983298{
@@ -3310,7 +3310,7 @@ where
33103310#[ inline]
33113311#[ target_feature( enable = "altivec" ) ]
33123312#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
3313- pub unsafe fn vec_extract < T , const IDX : u32 > ( a : T ) -> <T as sealed:: VectorExtract >:: S
3313+ pub unsafe fn vec_extract < T , const IDX : u32 > ( a : T ) -> <T as sealed:: VectorExtract >:: Scalar
33143314where
33153315 T : sealed:: VectorExtract ,
33163316{
@@ -3949,7 +3949,7 @@ where
39493949#[ inline]
39503950#[ target_feature( enable = "altivec" ) ]
39513951#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
3952- pub unsafe fn vec_rl < T > ( a : T , b : <T as sealed:: VectorRl >:: B ) -> T
3952+ pub unsafe fn vec_rl < T > ( a : T , b : <T as sealed:: VectorRl >:: Shift ) -> T
39533953where
39543954 T : sealed:: VectorRl ,
39553955{
0 commit comments