Skip to content

Commit c73b5b8

Browse files
gnzlbgalexcrichton
authored andcommitted
fix return type of _MM_SHUFFLE from u32 to i32 (#588)
1 parent 0309be1 commit c73b5b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coresimd/x86/sse.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,8 @@ pub unsafe fn _mm_setzero_ps() -> __m128 {
981981
#[inline]
982982
#[allow(non_snake_case)]
983983
#[unstable(feature = "stdsimd", issue = "27731")]
984-
pub const fn _MM_SHUFFLE(z: u32, y: u32, x: u32, w: u32) -> u32 {
985-
(z << 6) | (y << 4) | (x << 2) | w
984+
pub const fn _MM_SHUFFLE(z: u32, y: u32, x: u32, w: u32) -> i32 {
985+
((z << 6) | (y << 4) | (x << 2) | w) as i32
986986
}
987987

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

0 commit comments

Comments
 (0)