[][src]Macro safe_arch::round_m128d

macro_rules! round_m128d {
    ($a:expr, Nearest) => { ... };
    ($a:expr, NegInf) => { ... };
    ($a:expr, PosInf) => { ... };
    ($a:expr, Zero) => { ... };
}

Rounds each lane in the style specified.

let a = m128d::from_array([-0.1, 1.6]);
//
assert_eq!(round_m128d!(a, Nearest).to_array(), [0.0, 2.0]);
//
assert_eq!(round_m128d!(a, NegInf).to_array(), [-1.0, 1.0]);
//
assert_eq!(round_m128d!(a, PosInf).to_array(), [0.0, 2.0]);
//
assert_eq!(round_m128d!(a, Zero).to_array(), [0.0, 1.0]);