Skip to content

Commit

Permalink
Remove Selfs which don't compile anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
koute committed May 17, 2023
1 parent 738cfee commit a7df9c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/vector/packed_simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
))
}
Expand All @@ -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)) }
}
}

Expand Down Expand Up @@ -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,
))
Expand All @@ -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)) }
}
}

Expand Down

0 comments on commit a7df9c7

Please sign in to comment.