Function core::arch::x86::_mm256_round_ps1.27.0[][src]

pub unsafe fn _mm256_round_ps<const ROUNDING: i32>(a: __m256) -> __m256
This is supported on x86 and target feature avx only.
Expand description

根据标志 ROUNDINGa 中的单精度 (32-bit) 浮点包装元素进行舍入。 ROUNDING 的值可能如下:

  • 0x00: 四舍五入到最接近的整数。
  • 0x01: 向下舍入,朝负无穷大方向移动。
  • 0x02: 向上取整,朝正无穷大方向移动。
  • 0x03: 截断值。

有关选项的完整列表,请检查 LLVM 文档

Intel’s documentation