devela::_dep::safe_arch

Function cast_to_m128d_from_m128i

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

Bit-preserving cast to m128d from m128i

let a = m128i::from([1, 2, 3, 4]);
let c: [u64; 2] = cast_to_m128d_from_m128i(a).to_bits();
assert_eq!(c, [0x200000001, 0x400000003]);