|
3 | 3 | #[repr(simd)]
|
4 | 4 | #[derive(Copy, Clone, Debug, PartialEq)]
|
5 | 5 | #[allow(non_camel_case_types)]
|
6 |
| -struct i32x2(i32, i32); |
| 6 | +struct i32x2([i32; 2]); |
7 | 7 | #[repr(simd)]
|
8 | 8 | #[derive(Copy, Clone, Debug, PartialEq)]
|
9 | 9 | #[allow(non_camel_case_types)]
|
10 |
| -struct i32x4(i32, i32, i32, i32); |
| 10 | +struct i32x4([i32; 4]); |
11 | 11 | #[repr(simd)]
|
12 | 12 | #[derive(Copy, Clone, Debug, PartialEq)]
|
13 | 13 | #[allow(non_camel_case_types)]
|
14 |
| -struct i32x8(i32, i32, i32, i32, i32, i32, i32, i32); |
| 14 | +struct i32x8([i32; 8]); |
15 | 15 |
|
16 | 16 | fn main() {
|
17 |
| - let _x2 = i32x2(20, 21); |
18 |
| - let _x4 = i32x4(40, 41, 42, 43); |
19 |
| - let _x8 = i32x8(80, 81, 82, 83, 84, 85, 86, 87); |
| 17 | + let _x2 = i32x2([20, 21]); |
| 18 | + let _x4 = i32x4([40, 41, 42, 43]); |
| 19 | + let _x8 = i32x8([80, 81, 82, 83, 84, 85, 86, 87]); |
20 | 20 |
|
21 |
| - let _y2 = i32x2(120, 121); |
22 |
| - let _y4 = i32x4(140, 141, 142, 143); |
23 |
| - let _y8 = i32x8(180, 181, 182, 183, 184, 185, 186, 187); |
| 21 | + let _y2 = i32x2([120, 121]); |
| 22 | + let _y4 = i32x4([140, 141, 142, 143]); |
| 23 | + let _y8 = i32x8([180, 181, 182, 183, 184, 185, 186, 187]); |
24 | 24 | }
|
0 commit comments