File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1842,15 +1842,15 @@ pub unsafe fn _mm_set_pd1(a: f64) -> f64x2 {
1842
1842
#[ inline( always) ]
1843
1843
#[ target_feature = "+sse2" ]
1844
1844
pub unsafe fn _mm_set_pd ( a : f64 , b : f64 ) -> f64x2 {
1845
- f64x2:: new ( a , b )
1845
+ f64x2:: new ( b , a )
1846
1846
}
1847
1847
1848
1848
/// Set packed double-precision (64-bit) floating-point elements in the return value with the
1849
1849
/// supplied values in reverse order.
1850
1850
#[ inline( always) ]
1851
1851
#[ target_feature = "+sse2" ]
1852
1852
pub unsafe fn _mm_setr_pd ( a : f64 , b : f64 ) -> f64x2 {
1853
- f64x2:: new ( b , a )
1853
+ f64x2:: new ( a , b )
1854
1854
}
1855
1855
1856
1856
/// returns packed double-precision (64-bit) floating-point elements with all zeros.
@@ -3774,13 +3774,13 @@ mod tests {
3774
3774
#[ simd_test = "sse2" ]
3775
3775
unsafe fn _mm_set_pd ( ) {
3776
3776
let r = sse2:: _mm_set_pd ( 1.0_f64 , 5.0_f64 ) ;
3777
- assert_eq ! ( r, f64x2:: new( 1 .0_f64, 5 .0_f64) ) ;
3777
+ assert_eq ! ( r, f64x2:: new( 5 .0_f64, 1 .0_f64) ) ;
3778
3778
}
3779
3779
3780
3780
#[ simd_test = "sse2" ]
3781
3781
unsafe fn _mm_setr_pd ( ) {
3782
3782
let r = sse2:: _mm_setr_pd ( 1.0_f64 , -5.0_f64 ) ;
3783
- assert_eq ! ( r, f64x2:: new( - 5 .0_f64, 1 .0_f64) ) ;
3783
+ assert_eq ! ( r, f64x2:: new( 1 .0_f64, - 5 .0_f64) ) ;
3784
3784
}
3785
3785
3786
3786
#[ simd_test = "sse2" ]
You can’t perform that action at this time.
0 commit comments