@@ -410,8 +410,8 @@ mod sealed {
410
410
411
411
#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
412
412
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 ;
415
415
}
416
416
417
417
const fn idx_in_vec < T , const IDX : u32 > ( ) -> u32 {
@@ -422,11 +422,11 @@ mod sealed {
422
422
( $ty: ident) => {
423
423
#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
424
424
impl VectorInsert for t_t_l!( $ty) {
425
- type S = $ty;
425
+ type Scalar = $ty;
426
426
#[ inline]
427
427
#[ 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)
430
430
}
431
431
}
432
432
} ;
@@ -442,19 +442,19 @@ mod sealed {
442
442
443
443
#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
444
444
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 ;
447
447
}
448
448
449
449
macro_rules! impl_vec_extract {
450
450
( $ty: ident) => {
451
451
#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
452
452
impl VectorExtract for t_t_l!( $ty) {
453
- type S = $ty;
453
+ type Scalar = $ty;
454
454
#[ inline]
455
455
#[ 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 >( ) } )
458
458
}
459
459
}
460
460
} ;
@@ -3233,18 +3233,18 @@ mod sealed {
3233
3233
3234
3234
#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
3235
3235
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 ;
3238
3238
}
3239
3239
3240
3240
macro_rules! impl_vec_rl {
3241
3241
( $fun: ident ( $a: ident) ) => {
3242
3242
#[ unstable( feature = "stdarch_powerpc" , issue = "111145" ) ]
3243
3243
impl VectorRl for $a {
3244
- type B = t_u!( $a) ;
3244
+ type Shift = t_u!( $a) ;
3245
3245
#[ inline]
3246
3246
#[ target_feature( enable = "altivec" ) ]
3247
- unsafe fn vec_rl( self , b: Self :: B ) -> Self {
3247
+ unsafe fn vec_rl( self , b: Self :: Shift ) -> Self {
3248
3248
transmute( $fun( transmute( self ) , b) )
3249
3249
}
3250
3250
}
@@ -3292,7 +3292,7 @@ mod sealed {
3292
3292
#[ inline]
3293
3293
#[ target_feature( enable = "altivec" ) ]
3294
3294
#[ 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
3296
3296
where
3297
3297
T : sealed:: VectorInsert ,
3298
3298
{
@@ -3310,7 +3310,7 @@ where
3310
3310
#[ inline]
3311
3311
#[ target_feature( enable = "altivec" ) ]
3312
3312
#[ 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
3314
3314
where
3315
3315
T : sealed:: VectorExtract ,
3316
3316
{
@@ -3949,7 +3949,7 @@ where
3949
3949
#[ inline]
3950
3950
#[ target_feature( enable = "altivec" ) ]
3951
3951
#[ 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
3953
3953
where
3954
3954
T : sealed:: VectorRl ,
3955
3955
{
0 commit comments