Function safe_arch::move_mask_m128
source ยท pub fn move_mask_m128(a: m128) -> i32
Available with target feature
sse
only.Expand description
Gathers the sign bit of each lane.
The output has lane 0 as bit 0, lane 1 as bit 1, and so on.
let a = m128::from_array([-1.0, 12.0, -3.0, -4.0]);
let i = move_mask_m128(a);
assert_eq!(i, 0b1101);