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

pub unsafe fn _mm_cvttss_si32(a: __m128) -> i32
This is supported on x86 and target feature sse only.
Expand description

将输入 vector 中的最低 32 位浮点型转换为带有截断的 32 位整数。

始终使用截断将结果四舍五入 (趋向于零)。 如果结果不能表示为 32 位整数,则结果将为 0x8000_0000 (i32::MIN) 或无效的操作浮点异常 (如果未屏蔽) (请参见 _mm_setcsr)。)。

这对应于 CVTTSS2SI 指令 (具有 32 位输出)。

Intel’s documentation