Migrate i586::sse41 to vendor types (#276)
This commit is contained in:
parent
3148881fa2
commit
fde52cb334
3 changed files with 511 additions and 484 deletions
|
|
@ -2333,12 +2333,6 @@ mod tests {
|
|||
use x86::*;
|
||||
use v128::*;
|
||||
|
||||
// not actually an intrinsics in SSE2 but useful in the tests below
|
||||
#[target_feature = "+sse2"]
|
||||
unsafe fn _mm_setr_epi64x(a: i64, b: i64) -> __m128i {
|
||||
_mm_set_epi64x(b, a)
|
||||
}
|
||||
|
||||
#[simd_test = "sse2"]
|
||||
unsafe fn test_mm_pause() {
|
||||
_mm_pause();
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -30,3 +30,10 @@ pub unsafe fn get_m128(a: __m128, idx: usize) -> f32 {
|
|||
union A { a: __m128, b: [f32; 4] };
|
||||
mem::transmute::<__m128, A>(a).b[idx]
|
||||
}
|
||||
|
||||
// not actually an intrinsic but useful in various tests as we proted from
|
||||
// `i64x2::new` which is backwards from `_mm_set_epi64x`
|
||||
#[target_feature = "+sse2"]
|
||||
pub unsafe fn _mm_setr_epi64x(a: i64, b: i64) -> __m128i {
|
||||
_mm_set_epi64x(b, a)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue