devela::_dep::safe_arch

Function move_mask_m128

pub fn move_mask_m128(a: m128) -> i32 
Available on crate feature dep_safe_arch 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);