Skip to content

Commit

Permalink
fix return type of _MM_SHUFFLE from u32 to i32 (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg authored and alexcrichton committed Nov 5, 2018
1 parent 0309be1 commit c73b5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coresimd/x86/sse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -981,8 +981,8 @@ pub unsafe fn _mm_setzero_ps() -> __m128 {
#[inline]
#[allow(non_snake_case)]
#[unstable(feature = "stdsimd", issue = "27731")]
pub const fn _MM_SHUFFLE(z: u32, y: u32, x: u32, w: u32) -> u32 {
(z << 6) | (y << 4) | (x << 2) | w
pub const fn _MM_SHUFFLE(z: u32, y: u32, x: u32, w: u32) -> i32 {
((z << 6) | (y << 4) | (x << 2) | w) as i32
}

/// Shuffle packed single-precision (32-bit) floating-point elements in `a` and
Expand Down

0 comments on commit c73b5b8

Please sign in to comment.