Function safe_arch::min_m128

source ·
pub fn min_m128(a: m128, b: m128) -> m128
Available with target feature sse only.
Expand description

Lanewise min(a, b).

let a = m128::from_array([1.0, 12.0, 3.0, 4.0]);
let b = m128::from_array([5.0, 6.0, 7.0, 8.5]);
let c = min_m128(a, b).to_array();
assert_eq!(c, [1.0, 6.0, 3.0, 4.0]);