|
13 | 13 | //! [amd64_ref]: http://support.amd.com/TechDocs/24594.pdf
|
14 | 14 | //! [wiki]: https://en.wikipedia.org/wiki/Advanced_Vector_Extensions
|
15 | 15 |
|
16 |
| -use coresimd::simd_llvm::*; |
17 | 16 | use coresimd::simd::*;
|
| 17 | +use coresimd::simd_llvm::*; |
18 | 18 | use coresimd::x86::*;
|
19 | 19 | use intrinsics;
|
20 | 20 | use mem;
|
@@ -142,9 +142,18 @@ pub unsafe fn _mm256_shuffle_pd(a: __m256d, b: __m256d, imm8: i32) -> __m256d {
|
142 | 142 | pub unsafe fn _mm256_shuffle_ps(a: __m256, b: __m256, imm8: i32) -> __m256 {
|
143 | 143 | let imm8 = (imm8 & 0xFF) as u8;
|
144 | 144 | macro_rules! shuffle4 {
|
145 |
| - ($a:expr, $b:expr, $c:expr, $d:expr, $e:expr, $f:expr, $g: expr, $h: expr) => { |
| 145 | + ( |
| 146 | + $a: expr, |
| 147 | + $b: expr, |
| 148 | + $c: expr, |
| 149 | + $d: expr, |
| 150 | + $e: expr, |
| 151 | + $f: expr, |
| 152 | + $g: expr, |
| 153 | + $h: expr |
| 154 | + ) => { |
146 | 155 | simd_shuffle8(a, b, [$a, $b, $c, $d, $e, $f, $g, $h]);
|
147 |
| - } |
| 156 | + }; |
148 | 157 | }
|
149 | 158 | macro_rules! shuffle3 {
|
150 | 159 | ($a: expr, $b: expr, $c: expr, $e: expr, $f: expr, $g: expr) => {
|
@@ -471,9 +480,18 @@ pub unsafe fn _mm256_blend_pd(a: __m256d, b: __m256d, imm8: i32) -> __m256d {
|
471 | 480 | pub unsafe fn _mm256_blend_ps(a: __m256, b: __m256, imm8: i32) -> __m256 {
|
472 | 481 | let imm8 = (imm8 & 0xFF) as u8;
|
473 | 482 | macro_rules! blend4 {
|
474 |
| - ($a:expr, $b:expr, $c:expr, $d:expr, $e:expr, $f:expr, $g:expr, $h:expr) => { |
| 483 | + ( |
| 484 | + $a: expr, |
| 485 | + $b: expr, |
| 486 | + $c: expr, |
| 487 | + $d: expr, |
| 488 | + $e: expr, |
| 489 | + $f: expr, |
| 490 | + $g: expr, |
| 491 | + $h: expr |
| 492 | + ) => { |
475 | 493 | simd_shuffle8(a, b, [$a, $b, $c, $d, $e, $f, $g, $h]);
|
476 |
| - } |
| 494 | + }; |
477 | 495 | }
|
478 | 496 | macro_rules! blend3 {
|
479 | 497 | ($a: expr, $b: expr, $c: expr, $d: expr, $e: expr, $f: expr) => {
|
|
0 commit comments