[][src]Function safe_arch::cast_to_m128_from_m256

#[must_use]pub fn cast_to_m128_from_m256(a: m256) -> m128
This is supported with target feature avx only.

Bit-preserving cast to m128 from m256.

let a = m256::from([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0]);
let b = cast_to_m128_from_m256(a).to_array();
assert_eq!(b, [1.0, 2.0, 3.0, 4.0]);