Function safe_arch::floor_m128
source ยท pub fn floor_m128(a: m128) -> m128
Available with target feature
sse4.1
only.Expand description
Round each lane to a whole number, towards negative infinity
let a = m128::from_array([-0.1, 1.8, 2.5, 3.0]);
assert_eq!(floor_m128(a).to_array(), [-1.0, 1.0, 2.0, 3.0]);