@@ -30,18 +30,18 @@ debug_wrapper! {
30
30
}
31
31
32
32
macro_rules! impl_fmt_trait {
33
- { $( $type: ty => $( ( $trait: ident, $format: ident) ) ,* ; ) * } => {
33
+ { $( $type: ident => $( ( $trait: ident, $format: ident) ) ,* ; ) * } => {
34
34
$( // repeat type
35
35
$( // repeat trait
36
- impl core:: fmt:: $trait for $type {
36
+ impl < const LANES : usize > core:: fmt:: $trait for crate :: $type< LANES > {
37
37
fn fmt( & self , f: & mut core:: fmt:: Formatter ) -> core:: fmt:: Result {
38
38
$format( self . as_ref( ) , f)
39
39
}
40
40
}
41
41
) *
42
42
) *
43
43
} ;
44
- { integers: $( $type: ty , ) * } => {
44
+ { integers: $( $type: ident , ) * } => {
45
45
impl_fmt_trait! {
46
46
$( $type =>
47
47
( Debug , format) ,
@@ -54,7 +54,7 @@ macro_rules! impl_fmt_trait {
54
54
) *
55
55
}
56
56
} ;
57
- { floats: $( $type: ty , ) * } => {
57
+ { floats: $( $type: ident , ) * } => {
58
58
impl_fmt_trait! {
59
59
$( $type =>
60
60
( Debug , format) ,
@@ -63,7 +63,7 @@ macro_rules! impl_fmt_trait {
63
63
) *
64
64
}
65
65
} ;
66
- { masks: $( $type: ty , ) * } => {
66
+ { masks: $( $type: ident , ) * } => {
67
67
impl_fmt_trait! {
68
68
$( $type =>
69
69
( Debug , format) ;
@@ -74,32 +74,12 @@ macro_rules! impl_fmt_trait {
74
74
75
75
impl_fmt_trait ! {
76
76
integers:
77
- crate :: u8x8, crate :: u8x16, crate :: u8x32, crate :: u8x64,
78
- crate :: i8x8, crate :: i8x16, crate :: i8x32, crate :: i8x64,
79
- crate :: u16x4, crate :: u16x8, crate :: u16x16, crate :: u16x32,
80
- crate :: i16x4, crate :: i16x8, crate :: i16x16, crate :: i16x32,
81
- crate :: u32x2, crate :: u32x4, crate :: u32x8, crate :: u32x16,
82
- crate :: i32x2, crate :: i32x4, crate :: i32x8, crate :: i32x16,
83
- crate :: u64x2, crate :: u64x4, crate :: u64x8,
84
- crate :: i64x2, crate :: i64x4, crate :: i64x8,
85
- crate :: u128x2, crate :: u128x4,
86
- crate :: i128x2, crate :: i128x4,
87
- crate :: usizex2, crate :: usizex4, crate :: usizex8,
88
- crate :: isizex2, crate :: isizex4, crate :: isizex8,
77
+ SimdU8 , SimdU16 , SimdU32 , SimdU64 , SimdU128 ,
78
+ SimdI8 , SimdI16 , SimdI32 , SimdI64 , SimdI128 ,
79
+ SimdUsize , SimdIsize ,
89
80
}
90
81
91
82
impl_fmt_trait ! {
92
83
floats:
93
- crate :: f32x2, crate :: f32x4, crate :: f32x8, crate :: f32x16,
94
- crate :: f64x2, crate :: f64x4, crate :: f64x8,
95
- }
96
-
97
- impl_fmt_trait ! {
98
- masks:
99
- crate :: mask8x8, crate :: mask8x16, crate :: mask8x32, crate :: mask8x64,
100
- crate :: mask16x4, crate :: mask16x8, crate :: mask16x16, crate :: mask16x32,
101
- crate :: mask32x2, crate :: mask32x4, crate :: mask32x8, crate :: mask32x16,
102
- crate :: mask64x2, crate :: mask64x4, crate :: mask64x8,
103
- crate :: mask128x2, crate :: mask128x4,
104
- crate :: masksizex2, crate :: masksizex4, crate :: masksizex8,
84
+ SimdF32 , SimdF64 ,
105
85
}
0 commit comments