Function safe_arch::set_i32_m128i_s

source ·
pub fn set_i32_m128i_s(i: i32) -> m128i
Available with target feature sse2 only.
Expand description

Set an i32 as the low 32-bit lane of an m128i, other lanes blank.

let a: [i32; 4] = set_i32_m128i_s(1_i32).into();
let b: [i32; 4] = m128i::from([1, 0, 0, 0]).into();
assert_eq!(a, b);