[][src]Macro safe_arch::round_m256d

macro_rules! round_m256d {
    ($a:expr, Nearest) => { ... };
    ($a:expr, NegInf) => { ... };
    ($a:expr, PosInf) => { ... };
    ($a:expr, Zero) => { ... };
}
This is supported with target feature avx only.

Rounds each lane in the style specified.

let a = m256d::from_array([-0.1, 1.6, 2.5, 3.1]);
//
assert_eq!(round_m256d!(a, Nearest).to_array(), [0.0, 2.0, 2.0, 3.0]);
//
assert_eq!(round_m256d!(a, NegInf).to_array(), [-1.0, 1.0, 2.0, 3.0]);
//
assert_eq!(round_m256d!(a, PosInf).to_array(), [0.0, 2.0, 3.0, 4.0]);
//
assert_eq!(round_m256d!(a, Zero).to_array(), [0.0, 1.0, 2.0, 3.0]);