]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | The length of the platform-intrinsic function `simd_shuffle` wasn't specified. |
2 | ||
3 | Erroneous code example: | |
60c5eb7d XL |
4 | |
5 | ```compile_fail,E0439 | |
6 | #![feature(platform_intrinsics)] | |
7 | ||
8 | extern "platform-intrinsic" { | |
9 | fn simd_shuffle<A,B>(a: A, b: A, c: [u32; 8]) -> B; | |
10 | // error: invalid `simd_shuffle`, needs length: `simd_shuffle` | |
11 | } | |
12 | ``` | |
13 | ||
14 | The `simd_shuffle` function needs the length of the array passed as | |
15 | last parameter in its name. Example: | |
16 | ||
17 | ``` | |
18 | #![feature(platform_intrinsics)] | |
19 | ||
20 | extern "platform-intrinsic" { | |
21 | fn simd_shuffle8<A,B>(a: A, b: A, c: [u32; 8]) -> B; | |
22 | } | |
23 | ``` |