Function safe_arch::convert_i32_replace_m128_s 
source · pub fn convert_i32_replace_m128_s(a: m128, i: i32) -> m128Expand description
Convert i32 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_i32_replace_m128_s(a, 5_i32).to_array();
assert_eq!(b, [5.0, 2.0, 3.0, 4.0]);- Intrinsic: _mm_cvtsi32_ss
- Assembly: cvtsi2ss xmm, r32