Function safe_arch::set_splat_i16_m128i

source ยท
pub fn set_splat_i16_m128i(i: i16) -> m128i
Available with target feature sse2 only.
Expand description

Splats the i16 to all lanes of the m128i.

let a = m128i::from([1_i16, 1, 1, 1, 1, 1, 1, 1]);
let b = set_splat_i16_m128i(1);
assert_eq!(<[i16; 8]>::from(a), <[i16; 8]>::from(a));