Function core::arch::x86_64::_mm_cvttss_si32

1.27.0 · source ·
pub unsafe fn _mm_cvttss_si32(a: __m128) -> i32
Available on (x86 or x86-64) and target feature sse and x86-64 only.
Expand description

Converts the lowest 32 bit float in the input vector to a 32 bit integer with truncation.

The result is rounded always using truncation (round towards zero). If the result cannot be represented as a 32 bit integer the result will be 0x8000_0000 (i32::MIN) or an invalid operation floating point exception if unmasked (see _mm_setcsr).

This corresponds to the CVTTSS2SI instruction (with 32 bit output).

Intel’s documentation

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.