devela::_dep::safe_arch

Function cast_to_m128_from_m128d

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

Bit-preserving cast to m128 from m128d

let a = m128d::from_array([1.0, 2.0]);
let c: [u32; 4] = cast_to_m128_from_m128d(a).to_bits();
assert_eq!(c, [0, 0x3FF00000, 0, 0x40000000]);