safe_arch

Function convert_i64_replace_m128_s

Source
pub fn convert_i64_replace_m128_s(a: m128, i: i64) -> m128
Expand description

Convert i64 to f32 and replace the low lane of the input.

let a = m128::from_array([1.0, 2.0, 3.0, 4.0]);
let b = convert_i64_replace_m128_s(a, 5_i64).to_array();
assert_eq!(b, [5.0, 2.0, 3.0, 4.0]);