From bd36bb317d62df25643d6995cbcf39460e6cb6f1 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Mon, 5 Nov 2018 16:36:55 +0100 Subject: [PATCH] fix return type of _MM_SHUFFLE from u32 to i32 (#588) --- library/stdarch/coresimd/x86/sse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/stdarch/coresimd/x86/sse.rs b/library/stdarch/coresimd/x86/sse.rs index 3d2cc65ae80e..9349bf8f73a4 100644 --- a/library/stdarch/coresimd/x86/sse.rs +++ b/library/stdarch/coresimd/x86/sse.rs @@ -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