Remove Selfs which don't compile anymore

This commit is contained in:
Jan Bujak 2023-05-17 04:21:17 +00:00
parent 738cfee020
commit a7df9c7918
No known key found for this signature in database
GPG key ID: 3B438F83D43341D4

View file

@ -257,7 +257,7 @@ impl u64x4 {
pub fn new(x0: u64, x1: u64, x2: u64, x3: u64) -> u64x4 {
unsafe {
// _mm256_set_epi64 sets the underlying vector in reverse order of the args
Self(core::arch::x86_64::_mm256_set_epi64x(
u64x4(core::arch::x86_64::_mm256_set_epi64x(
x3 as i64, x2 as i64, x1 as i64, x0 as i64,
))
}
@ -267,7 +267,7 @@ impl u64x4 {
#[unsafe_target_feature("avx2")]
#[inline]
pub fn splat(x: u64) -> u64x4 {
unsafe { Self(core::arch::x86_64::_mm256_set1_epi64x(x as i64)) }
unsafe { u64x4(core::arch::x86_64::_mm256_set1_epi64x(x as i64)) }
}
}
@ -308,7 +308,7 @@ impl u32x8 {
pub fn new(x0: u32, x1: u32, x2: u32, x3: u32, x4: u32, x5: u32, x6: u32, x7: u32) -> u32x8 {
unsafe {
// _mm256_set_epi32 sets the underlying vector in reverse order of the args
Self(core::arch::x86_64::_mm256_set_epi32(
u32x8(core::arch::x86_64::_mm256_set_epi32(
x7 as i32, x6 as i32, x5 as i32, x4 as i32, x3 as i32, x2 as i32, x1 as i32,
x0 as i32,
))
@ -319,7 +319,7 @@ impl u32x8 {
#[unsafe_target_feature("avx2")]
#[inline]
pub fn splat(x: u32) -> u32x8 {
unsafe { Self(core::arch::x86_64::_mm256_set1_epi32(x as i32)) }
unsafe { u32x8(core::arch::x86_64::_mm256_set1_epi32(x as i32)) }
}
}