Skip to main content

simd_trunc

Function simd_trunc 

Source
pub const unsafe fn simd_trunc<T>(x: T) -> T
🔬This is a nightly-only experimental API. (core_intrinsics)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description

Returns the integer part of each element as an integer-valued float. In other words, non-integer values are truncated towards zero.

T must be a vector of floats.