Function safe_arch::set_m128_s

source ·
pub fn set_m128_s(low: f32) -> m128
Available with target feature sse only.
Expand description

Sets the args into an m128, first arg is the high lane.

let a = set_m128_s(1.0).to_array();
let b = m128::from_array([1.0, 0.0, 0.0, 0.0]).to_array();
assert_eq!(a, b);