devela::_dep::safe_arch

Function convert_to_m128_from_i32_m128i

pub fn convert_to_m128_from_i32_m128i(a: m128i) -> m128
Available on crate feature dep_safe_arch only.
Expand description

Rounds the four i32 lanes to four f32 lanes.

let a = m128i::from([1, 2, 3, 4]);
let b = convert_to_m128_from_i32_m128i(a);
let c = m128::from_array([1.0, 2.0, 3.0, 4.0]);
assert_eq!(b.to_bits(), c.to_bits());