Function shuffle_av_i32_all_m256
pub fn shuffle_av_i32_all_m256(a: m256, v: m256i) -> m256
Available on crate feature
dep_safe_arch
only.Expand description
Shuffle f32
lanes in a
using i32
values in v
.
let a = m256::from_array([8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0]);
let v = m256i::from([7, 6, 5, 5, 3, 2, 2, 0]);
let c: [f32; 8] = shuffle_av_i32_all_m256(a, v).to_array();
assert_eq!(c, [15.0, 14.0, 13.0, 13.0, 11.0, 10.0, 10.0, 8.0]);
- Intrinsic:
_mm256_permutevar8x32_ps
- Assembly:
vpermps ymm, ymm, ymm