[][src]Function safe_arch::transpose_four_m128

pub fn transpose_four_m128(
    a: &mut m128,
    b: &mut m128,
    c: &mut m128,
    d: &mut m128
)
This is supported with target feature sse only.

Transpose four m128 as if they were a 4x4 matrix.

let mut a = m128::from_array([1.0, 2.0, 3.0, 4.0]);
let mut b = m128::from_array([5.0, 6.0, 7.0, 8.0]);
let mut c = m128::from_array([9.0, 10.0, 11.0, 12.0]);
let mut d = m128::from_array([13.0, 14.0, 15.0, 16.0]);
transpose_four_m128(&mut a, &mut b, &mut c, &mut d);
assert_eq!(a.to_array(), [1.0, 5.0, 9.0, 13.0]);
assert_eq!(b.to_array(), [2.0, 6.0, 10.0, 14.0]);
assert_eq!(c.to_array(), [3.0, 7.0, 11.0, 15.0]);
assert_eq!(d.to_array(), [4.0, 8.0, 12.0, 16.0]);