@@ -1311,7 +1311,7 @@ impl AvxVector for __m128 {
13111311 #[ inline( always) ]
13121312 unsafe fn transpose3_packed ( rows : [ Self ; 3 ] ) -> [ Self ; 3 ] {
13131313 let unpacked0 = Self :: unpacklo_complex ( [ rows[ 0 ] , rows[ 1 ] ] ) ;
1314- let blended = _mm_blend_ps ( rows[ 0 ] , rows[ 2 ] , 0x33 ) ;
1314+ let blended = _mm_blend_ps ( rows[ 0 ] , rows[ 2 ] , 0x03 ) ;
13151315 let unpacked2 = Self :: unpackhi_complex ( [ rows[ 1 ] , rows[ 2 ] ] ) ;
13161316
13171317 [ unpacked0, blended, unpacked2]
@@ -1328,7 +1328,7 @@ impl AvxVector for __m128 {
13281328 [
13291329 Self :: unpacklo_complex ( [ rows[ 0 ] , rows[ 1 ] ] ) ,
13301330 Self :: unpacklo_complex ( [ rows[ 2 ] , rows[ 3 ] ] ) ,
1331- _mm_blend_ps ( rows[ 0 ] , rows[ 4 ] , 0x33 ) ,
1331+ _mm_blend_ps ( rows[ 0 ] , rows[ 4 ] , 0x03 ) ,
13321332 Self :: unpackhi_complex ( [ rows[ 1 ] , rows[ 2 ] ] ) ,
13331333 Self :: unpackhi_complex ( [ rows[ 3 ] , rows[ 4 ] ] ) ,
13341334 ]
@@ -1576,7 +1576,7 @@ impl AvxVector for __m256d {
15761576 #[ inline( always) ]
15771577 unsafe fn transpose3_packed ( rows : [ Self ; 3 ] ) -> [ Self ; 3 ] {
15781578 let unpacked0 = Self :: unpacklo_complex ( [ rows[ 0 ] , rows[ 1 ] ] ) ;
1579- let blended = _mm256_blend_pd ( rows[ 0 ] , rows[ 2 ] , 0x33 ) ;
1579+ let blended = _mm256_blend_pd ( rows[ 0 ] , rows[ 2 ] , 0x03 ) ;
15801580 let unpacked2 = Self :: unpackhi_complex ( [ rows[ 1 ] , rows[ 2 ] ] ) ;
15811581
15821582 [ unpacked0, blended, unpacked2]
@@ -1593,7 +1593,7 @@ impl AvxVector for __m256d {
15931593 [
15941594 Self :: unpacklo_complex ( [ rows[ 0 ] , rows[ 1 ] ] ) ,
15951595 Self :: unpacklo_complex ( [ rows[ 2 ] , rows[ 3 ] ] ) ,
1596- _mm256_blend_pd ( rows[ 0 ] , rows[ 4 ] , 0x33 ) ,
1596+ _mm256_blend_pd ( rows[ 0 ] , rows[ 4 ] , 0x03 ) ,
15971597 Self :: unpackhi_complex ( [ rows[ 1 ] , rows[ 2 ] ] ) ,
15981598 Self :: unpackhi_complex ( [ rows[ 3 ] , rows[ 4 ] ] ) ,
15991599 ]
@@ -1614,7 +1614,7 @@ impl AvxVector for __m256d {
16141614 Self :: unpacklo_complex ( [ rows[ 0 ] , rows[ 1 ] ] ) ,
16151615 Self :: unpacklo_complex ( [ rows[ 2 ] , rows[ 3 ] ] ) ,
16161616 Self :: unpacklo_complex ( [ rows[ 4 ] , rows[ 5 ] ] ) ,
1617- _mm256_blend_pd ( rows[ 0 ] , rows[ 6 ] , 0x33 ) ,
1617+ _mm256_blend_pd ( rows[ 0 ] , rows[ 6 ] , 0x03 ) ,
16181618 Self :: unpackhi_complex ( [ rows[ 1 ] , rows[ 2 ] ] ) ,
16191619 Self :: unpackhi_complex ( [ rows[ 3 ] , rows[ 4 ] ] ) ,
16201620 Self :: unpackhi_complex ( [ rows[ 5 ] , rows[ 6 ] ] ) ,
@@ -1856,11 +1856,11 @@ impl AvxVector for __m128d {
18561856
18571857 #[ inline( always) ]
18581858 unsafe fn swap_complex_components ( self ) -> Self {
1859- _mm_permute_pd ( self , 0x05 )
1859+ _mm_permute_pd ( self , 0x01 )
18601860 }
18611861 #[ inline( always) ]
18621862 unsafe fn duplicate_complex_components ( self ) -> ( Self , Self ) {
1863- ( _mm_movedup_pd ( self ) , _mm_permute_pd ( self , 0x0F ) )
1863+ ( _mm_movedup_pd ( self ) , _mm_permute_pd ( self , 0x03 ) )
18641864 }
18651865
18661866 #[ inline( always) ]
0 commit comments