_mm256_round_pd in core::arch::x86_64 - Rust
Description: Rounds packed double-precision (64-bit) floating point elements in `a` according to the flag `ROUNDING`. The value of `ROUNDING` may be as follows:

core::arch::x86_64

# Function _mm256_round_pd

1.27.0 · Source

    pub unsafe fn _mm256_round_pd(a: __m256d, const ROUNDING: i32) -> __m256d

Available on (x86 or x86-64) and target feature `avx` and x86-64 only.
Expand description

Rounds packed double-precision (64-bit) floating point elements in `a` according to the flag `ROUNDING`. The value of `ROUNDING` may be as follows:

- `0x00`: Round to the nearest whole number.
- `0x01`: Round down, toward negative infinity.
- `0x02`: Round up, toward positive infinity.
- `0x03`: Truncate the values.

For a complete list of options, check the LLVM docs.

Intel’s documentation