Skip to content

Commit

Permalink
make u32x8 version generic
Browse files Browse the repository at this point in the history
  • Loading branch information
mcroomp committed Oct 20, 2024
1 parent 0e57e32 commit 1ffed2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/u32x8_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ impl u32x8 {
pub fn mul_keep_high(self: u32x8, rhs: u32x8) -> u32x8 {
// avx2 doesn't benefit here sice the u32x4 is already using it,
// maybe it might help with the shuffling afterwards
u32x8 { a: self.a.mul_keep_high(rhs.a), b: self.b.mul_keep_high(rhs.b) }
let a: [u32x4; 2] = cast(self);
let b: [u32x4; 2] = cast(rhs);

cast([a[0].mul_keep_high(b[0]), a[1].mul_keep_high(b[1])])
}

#[inline]
Expand Down

0 comments on commit 1ffed2e

Please sign in to comment.