[−][src]Macro safe_arch::round_m128
Rounds each lane in the style specified.
let a = m128::from_array([-0.1, 1.6, 3.3, 4.5]); // assert_eq!(round_m128!(a, Nearest).to_array(), [0.0, 2.0, 3.0, 4.0]); // assert_eq!(round_m128!(a, NegInf).to_array(), [-1.0, 1.0, 3.0, 4.0]); // assert_eq!(round_m128!(a, PosInf).to_array(), [0.0, 2.0, 4.0, 5.0]); // assert_eq!(round_m128!(a, Zero).to_array(), [0.0, 1.0, 3.0, 4.0]);